PACSystems™ RX3i and RSTi-EP CPU Reference Manual Contents
GFK-2222AM May 2020
Contents v
5.2.5 Serial Cable Lengths and Shielding ................................................................................... 186
5.2.6 Serial Port Baud Rates ....................................................................................................... 186
5.2.7 Communications Coprocessor Module (CMM) ................................................................. 186
5.2.8 Programmable Coprocessor Module (PCM) ...................................................................... 187
Section 6: Serial I/O, SNP & RTU Protocols ........................................................................................... 189
6.1 Configuring Serial Ports Using COMMREQ Function 65520 ................................................... 189
6.1.1 COMMREQ Function Example ........................................................................................... 189
6.1.2 Timing ............................................................................................................................. 190
6.1.3 Sending Another COMMREQ to the Same Port ................................................................. 190
6.1.4 Invalid Port Configuration Combinations .......................................................................... 190
6.1.5 COMMREQ Command Block Parameter Values ................................................................. 190
6.1.6 Example COMMREQ Command Blocks for Serial Port Setup function ................................ 192
6.1.7 Example COMMREQ Command Block for Configuring SNP Protocol ................................. 192
6.1.8 Example COMMREQ Data Block for Configuring RTU Protocol .......................................... 192
6.1.9 Example COMMREQ Data Block for Configuring Serial I/O Protocol ................................... 194
6.2 Serial I/O Protocol .............................................................................................................. 194
6.2.1 Calling Serial I/O COMMREQs from the CPU Sweep ........................................................... 195
6.2.2 Compatibility ................................................................................................................... 195
6.2.3 Status Word for Serial I/O COMMREQs .............................................................................. 196
6.2.4 Serial I/O COMMREQ Commands ..................................................................................... 198
6.2.5 Overlapping COMMREQs .................................................................................................. 198
6.2.6 Initialize Port Function (4300) .......................................................................................... 199
6.2.7 Set Up Input Buffer Function (4301) ................................................................................. 200
6.2.8 Flush Input Buffer Function (4302) ................................................................................... 200
6.2.9 Read Port Status Function (4303) ..................................................................................... 201
6.2.10 Write Port Control Function (4304) ................................................................................. 204
6.2.11 Cancel COMMREQ Function (4399) ................................................................................. 205
6.2.12 Autodial Function (4400)................................................................................................. 207
6.2.13 Write Bytes Function (4401) ............................................................................................ 208
6.2.14 Read Bytes Function (4402) ............................................................................................. 210
6.2.15 Read String Function (4403) ............................................................................................ 211
6.3 RTU Slave Protocol ............................................................................................................. 213
6.3.1 Message Format ............................................................................................................... 214
6.3.2 Cyclic Redundancy Check (CRC) ....................................................................................... 219
6.3.3 RTU Message Descriptions ............................................................................................... 224
6.3.4 RTU Scratch Pad ............................................................................................................... 241
6.3.5 Communication Errors ..................................................................................................... 241
6.3.6 RTU Slave/SNP Slave Operation with Programmer Attached ............................................. 244