Академический Документы
Профессиональный Документы
Культура Документы
Project 1 Project 2
Global
Global Variable list
Variable list is empty
is empty
Implicit
Implicit Network
Network variables
variables
Global
Communic. Parameter
User list
program (Address
The implicit variables are reference)
inserted automatically.
They are used for data
handling and for diagnosis.
L40_1 L40_2
UDP
Port: 1202 Port: 1202
IPAddr. IPAddr.
Client Server
2. At least one Global Variable (e.g. a Dummy variable) has to be declared. which has
to be used together with a command (e.g. Dummy := Dummy ) in the program.
The variable must be declared as a Global network variable in its properties, in order to
activate the communication port (1202) .
After all settings, indicated in the screenshots, have been completed, the program has to be
compiled. As result, two new libraries have been added (SysLibSockets and
NetVarUdp_Lib_V23) to the Library window. The compiler has also added the implicit
variables for the management of the network.
Client Program
In order to control the acyclic services, the following small program has to be written.
OD = Object Dictionary
0: ODStateFree
1: ODReadRequest
2: ODReadRequestReply
3: ODWriteRequest
4: ODWriteRequestReply
5: ODAcknowledgement
6: ODBootUpRequest
100 : ODStateBusy
3. Enter the Index and Subindex numbers to be used by the partnercontrol, in order to
access the variables in the Server controller.
Server Program
To see the changing of the variable in the ClientController over the network, add the simple
program below into the module PLC_PRG of the Server Controller.