Data transfer between two PC programs in AC800M CCB
CCB AC800M PM856
I want to read variables in one PC program from another PC program.
I need more PC program because of different execution time I need.
It is possible with using MMS e.g MMSread 4bool
Thanks a lot
Voted best answer
First I am giving basic steps about the MMS communication between different simulated controller using compact control builder
1. For communication between two Applications, Access variables are defined. An
Access variable is a variable that is shared on the network. By sharing a local (or global) variable as an Access variable, it can be picked up by any system on the network
2.Access Variables are defined in the Controller Hardware part of the Project Explorer
3. Access variables are defined in a particular controller. There may be many Access
variables defined. Such variables are mapped into variables existing in the applications
running in that controller. This mapping is done in the Access Variable Editor.
Reading Data from an Access Variable
Access variables are declared in the controller that acts as a server. The Access
variable is in itself a reference to a variable in an application. This application acts as
the server application for the Access variable.
The client application has to be configured with at least one Connect function block
and one Read or Write function block addressing the Access variable.
In the above diagram an access variable has been defined and mapped to a variable in
the application called Application1.
Now the objective is to read the values stored in it from Application2. This is done
with Function Blocks instances placed in a program in Application2.
A minimum of two function blocks are required.
Connect Function Block
The purpose of this function block is to make the connection to the controller
which holds the access variable (referred to as the Remote System or Partner)
Read Function Block
The Read function block reads the values of the Access variable in the remote
controller and transfers them into a local variable (Control Builder variable) in the
application that is reading (Application2 above)
good way to read boolean variable
If you want to read more boolean variable, Use Pack function block and connect 16 or 32 booean input in pack function block and configure the output variable in the application level(global variable) and read only one integer or double integer output.
In other controller side unpack the integer value using unpack function block, now you will get 16 or 32 output boolean signals. it will helpful for reduce the data traffic in MMS communication network.