Example Commreq Command Block For Configuring Snp Protocol - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Address
Address + 1
Address + 2
Address + 3
Address + 4
Address + 5
Address + 6
Address + 7
Address + 8
Address + 9
Address + 10
Address + 11
Address + 12
Address + 13
Address + 14
Address + 15
Address + 16
Address + 17
Address + 18
Address + 19
Address + 20
230
GFK-1503E
For public disclosure
12.2.4.1 Example
Port 1 is running RTU Slave protocol at 9600 baud.
1.
2.
A programmer is attached to port 1. The programmer is using 9600 baud.
The CPU installs SNP Slave on port 1 and the programmer communicates normally.
3.
4.
The programmer stores a new configuration to port 1. The new configuration sets the
port for SNP Slave at 4800 baud (it will not take effect until the port loses
communications with the programmer).
5.
When the CPU loses communications with the programmer, the new configuration
takes effect.
12.2.5 Example COMMREQ Command Block for
Configuring SNP Protocol
Values
10H
0 = No Wait
0008 = %R, register memory
Zero-based number that gives the address of
the COMMREQ status word (for example, a
value of 99 gives an address of 100 for the
status word)
0 (Only used in Wait/No Wait mode)
0 (Only used in Wait/No Wait mode)
FFF0H
0001
0000=Slave
7=38400, 6=19200, 5=9600, 4=4800
0 = None, 1 = Odd, 2 = Even
1 = None
0 = None, 1 = 10ms, 2 = 100ms, 3 = 500ms
0 = Long, 1 = Medium, 2 = Short, 3 = None
1 = 8 bits
0 = 1 Stop Bit, 1 = 2 Stop bits
not used
not used
user-provided
user-provided
user-provided
Meaning
Data Block Length
WAIT/NOWAIT Flag
Status Word Pointer Memory
Type
Status Word Pointer Offset
Idle Timeout Value
Maximum Communication Time
Command Word (serial port
setup)
Protocol: 1=SNP
Port Mode
Data Rate
Parity
Flow Control
Turnaround Delay
Timeout
Bits Per Character
Stop Bits
Interface
Duplex Mode
Device identifier bytes 1 and 2
Device identifier bytes 3 and 4
Device identifier bytes 5 and 6
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents