CTI 2572 Installation and Operation Guide
47
Client Ladder Logic Example: Part 2
C19
SET
C100
C13
C12
RST
C15
RST
LDC
A: WY5
N = 140
C15
C12
C13
SET
C1
RST
C15
RST
C19
SET
LDC
A: WY5
N = 120
C15
C1
C12
SET
= INT
V140 + 166
Rung 5 - If the command
completed successfully while
C1 is on, this means the
Network server is started.
Sets C12 and resets C1 to
indicate new state. Loads
command slot 1 (WY5) with
the address of the Create
Socket command block.
Resets C15 to start a new
command cycle and sets the
trigger bit (C19) to execute
the new command.
If the TCP Connection is
lost, as indicated by error
code 166 in V140, the
Create Socket command will
be re-triggered to attempt to
create the connection again.
Rung 7- This sets the trigger
after you have successfully
completed the Create Socket
command (C13 is on) and
C100 is on. C100 represents
the event which would cause
you to execute the memory
transfer.
Rung 6 - If the command
completed successfully while
C12 is on, this means the
Create Socket command
completed successfully. Sets
C13 and resets C12 to
indicate new state. Loads
command slot 1 (WY5) with
the address of the Memory
Transfer command block.
Resets C15 to start a new
command cycle.