341
Serial Communications
Section 6-1
Procedure
Message Frame Formats
Data can be placed between a start code and end code for transmission by
TXD(236) and data between a start code and end code can be received by
RXD(235). When transmitting with TXD(236), data from I/O memory is trans-
mitted, and when receiving with RXD(235), the data (without start/end codes)
is stored in I/O memory. Up to 256 bytes (including the start and end codes)
can be transferred in no-protocol mode.
The start and end codes are set in the PLC Setup.
The following table shows the message formats that can be set for transmis-
sions and receptions in no-protocol mode.
• When more than one start code is used, the first start code will be effec-
tive.
• When more than one end code is used, the first end code will be effective.
• If the data being transferred contains the end code, the data transfer will
be stopped midway. In this case, change the end code to CR+LF.
Set the PLC Setup from the CX-
Programmer.
(Set the communications mode to
RS-232C
and set the parameters.)
Power OFF
Connect the CPU Unit and external device
through the RS-232C port. (Mounting the
RS-232C Option Board in option slot 1 or 2.
Set the DIP switch on the front of
the CPU Unit.
Turn OFF pin 4 to use serial port 1.
Turn OFF pin 5 to use serial port 2.
Power ON
PLC
→
External device
External device
→
PLC
Execute TXD(236).
Execute RXD(235).
Start code
End code
No
Yes
CR+LF
No
Yes
data
256 bytes max.
data
256 bytes max.
ED
data
256 bytes max.
CR+F
data
256 bytes max.
ST
data
256 bytes max.
ST
ED
data
256 bytes max.
ST
CR+LF
Содержание CP1H CPU UNITS - PROGRAMMING 05-2007
Страница 2: ......
Страница 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Страница 4: ...iv...
Страница 10: ...x...
Страница 18: ...xviii...
Страница 22: ...xxii...
Страница 34: ...xxxiv Conformance to EC Directives 6...
Страница 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Страница 370: ...336 Analog I O XA CPU Units Section 5 5...
Страница 552: ...518 Trouble Shooting Section 8 7...
Страница 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Страница 598: ...564 Sample Application Section 9 12...
Страница 642: ...608 Standard Models Appendix A...
Страница 643: ...609 Appendix B Dimensions Diagrams X XA and Y CPU Units 90 100 110 140 150 8 85 Four 4 5 dia holes...
Страница 652: ...618 Dimensions Diagrams Appendix B...
Страница 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Страница 776: ...742 PLC Setup Appendix G...
Страница 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Страница 786: ...752 Revision History...