3

3-42 TCP/IP Ethernet Communications User’s Manual - August 1997 GFK-1084B

The ladder program segment below illustrates how to incorporate these importantpoints in your program.
Note
The input values for the Block Move Functions in this example are takenfrom the Establish Read Channel Command example in Section 3 of thischapter.Nicknames have used in this example to make the ladder programeasier to follow. LANIFOK is bit 16 of the LAN Interface Status bits. Allother nicknames can be assigned as you desire.
| << RUNG 1 >>
|
|LANIFOK HEALTHY
+——] [—————————————————————————————————————————————————————————————————————( )——
|
| << RUNG 2 >>
|
|BEGREAD READREQ
+——] [—————————————————————————————————————————————————————————————————————()——
|
| << RUNG 3 >>
|
|HEALTHY READREQ +—————+ CMRQFLT
+——] [—————] [———+MOVE_+———————————————————————————————————————————————————(R)——
| |WORD |
| | |
| CONST —+IN Q+—%R00010
| +0000 | LEN |
| |00001|
| | |
| +—————+
| << RUNG 4 >>
|HEALTHY READREQ +—————+ +—————+ +—————+
+——] [—————] [———+BLKMV+—————————————————+BLKMV+—————————————————+BLKMV+
| | INT | | INT | | WORD|
| | | | | | |
| CONST —+IN1 Q+—%R00301 CONST —+IN1 Q+—%R00308 CONST —+IN1 Q+—%R00315
| +00017 | | +00005 | | +00008 | |
| | | | | | |
| CONST —+IN2 | CONST —+IN2 | CONST —+IN2 |
| +00000 | | +00010 | | +00050 | |
| | | | | | |
| CONST —+IN3 | CONST —+IN3 | CONST —+IN3 |
| +00008 | | +00003 | | +00008 | |
| | | | | | |
| CONST —+IN4 | CONST —+IN4 | CONST —+IN4 |
| +00009 | | +00004 | | +00001 | |
| | | | | | |
| CONST —+IN5 | CONST —+IN5 | CONST —+IN5 |
| +00000 | | +00050 | | +00004 | |
| | | | | | |
| CONST —+IN6 | CONST —+IN6 | CONST —+IN6 |
| +00000 | | +00008 | | +00003 | |
| | | | | | |
| CONST —+IN7 | CONST —+IN7 | CONST —+IN7 |
| +02003 +—————+ +00100 +—————+ +00000 +—————+
|
|