151
Explanation of Ladder Program
The first section of the program uses CMCR to execute TCP PASSIVE OPEN.
Program execution starts when CIO 00000 turns ON.
Program
address
Explanation
00000
Starting TCP OPEN execution.
When CIO 00000 turns ON, the TCP open error bit (CIO 00100) turns
OFF and the TCP open work bit (CIO 00200) turns ON to request one
execution of TCP OPEN.
00005
Execution of the TCP OPEN REQUEST via CMCR
If the Instruction Enabled Flag (25204) is ON while the TCP open work
bit (CIO 00200) is ON, a TCP OPEN REQUEST is executed via CMCR
and the TCP open work bit (CIO 00200) is turned OFF. Execution
pauses until CMCR instruction execution has been completed.
00010
Error evaluation.
The Instruction Enabled Flag (25204) turns ON again and the TCP
Opening Flag (CIO A1200) turns OFF to indicate that execution of TCP
OPEN via CMCR has ended. The Results Storage Error Flag
(CIO A1214) and the response code in the results storage area (DM
1020) are checked and the TCP open error bit (CIO 00100) turns ON if
an error has occurred.
00024
End of TCP OPEN execution.
CIO 00000 turns OFF to indicate that execution has been completed.
The next section of program uses CMCR to execute TCP CLOSE. Execution
starts when CIO 00001 turns ON
Program
address
Explanation
00029
Starting TCP CLOSE execution.
When CIO 00001 turns ON, the TCP close error bit (CIO 00100) turns
OFF and the TCP close bit (CIO 00201) turns ON to request one
execution of TCP CLOSE.
00034
Execution of the TCP CLOSE via CMCR.
If the Instruction Enabled Flag (25204) is ON while the TCP close work
bit (CIO 00201) is ON, TCP CLOSE is executed via CMCR and the
TCP close work bit (CIO 00201) turns OFF. Execution pauses until the
CMCR instruction has been completed.
00039
Error evaluation.
The Instruction Enabled Flag (25204) turns ON again and the TCP
closing bit (CIO A1203) turns OFF to indicate that execution of TCP
CLOSE via CMCR has ended. The Results Storage Error Flag
(CIO A1214) and the response code in the results storage area (DM
1050) are checked and the TCP close error bit (CIO 00101) turns ON if
an error has occurred.
00053
End of TCP CLOSE execution.
CIO 00001 turns OFF to indicate that execution has been completed.
Sample Programs for TCP and UDP Communications
Section 10-3
Содержание SYSMAC C200HW-PCS01-EV1
Страница 1: ...Cat No W313 E1 3 PC Card Unit SYSMAC C200HW PCU01 C200HW PCS01 EV1 OPERATION MANUAL...
Страница 2: ......
Страница 3: ...SYSMAC C200HW PCU01 C200HW PCS01 EV1 PC Card Unit Operation Manual Revised January 2000...
Страница 4: ......
Страница 6: ......
Страница 10: ......
Страница 12: ......
Страница 18: ......
Страница 34: ......
Страница 38: ......
Страница 60: ......
Страница 80: ......
Страница 82: ......
Страница 88: ......
Страница 120: ......
Страница 148: ......
Страница 178: ......
Страница 214: ......
Страница 220: ......
Страница 232: ......
Страница 234: ......
Страница 236: ......
Страница 238: ......
Страница 240: ......