Product Description 5V Power: Versamax Serial Communications Module
Product Description 5V Power: Versamax Serial Communications Module
Product Description 5V Power: Versamax Serial Communications Module
Specifications
Number of Serial Maximum: 8 per VersaMax Profinet
Communications Scanner (PNS)
Modules Maximum: 2 per Genius NIU
I/O Station
Number of RTU slaves 1 to 247
The module will support communication baud rates of 1200, 2400, per Serial
4800, 9600, and 19200, and half or full duplex operation. Communications Module
COMMREQ command Depends on individual COMMREQ
Serial Communications Port memory (%AQ) required content.
The RS-485 serial port is a 15-pin subminiature ‘D’ connector. For in the GENERIC_COMM Minimum: 22 words Maximum: 64
RS-232 communications, an RS-485 to RS-232 adapter such as module hardware words
IC690ACC901 can be used. Adapter IC690ACC901 can be installed configuration
with its right-angle cable hanging down.
COMMREQ response Minimum: 2 words
memory (%AI) required Maximum: 64 words
Serial Port Pin Assignments RTU Master Commands As described in Modbus RTU
Pin Signal Direction Function Communications Manual, GFK-2220.
Minor differences as described below.
1 Shield -- Shield drain wire connection
2 NC
65520, Initialize RTU Master Port
8000, Clear RTU Master Diag. Status
3 NC
8001, Read RTU Master Diag. Status
4 ATTACH Input 8002, Send RTU Read/Force/Preset Query
5 P5V Output 5V to power external adapters 8003, Send RTU Diagnostic Query
6 RTS(A) Output Request-to-Send (A) output
7 0V -- Ground reference
The minimum of 22 words is the required amount of memory that
8 CTS(B) Input Clear-to-Send (B) input needs to be configured in the GENERIC_COMM module configuration
9 RT -- Termination for RDA to execute the Initialize RTU Master Port Command (65520). The
10 RD(A) Input Receive Data (A) input minimum for all other commands is dependent on the size of the
command and the amount data requested (if any).
11 RD(B) Input Receive Data (B) input
12 SD(A) Output Transmit Data (A) output
13 SD(B) Output Transmit Data (B) output
14 RTS(B) Output Request to Send (B) output Product Revision History
15 CTS(A) Input Clear to Send (A) input Rev Date Description
Shel Shield -- Shield for 100% (continuous) IC200CMM020-EA Feb. 2012 Label change. No changes to
l coverage
features, performance or
compatibility.
This port supports both 2-wire and 4-wire electrical interfaces:
IC200CMM020-DA Mar. 2011 Labeling change. No changes
▪ Two-Wire Interface (single shielded twisted pair, half-duplex mode to compatibility, functions or
only) – Connect D1 to RD(A) at pin-10, D0 to RD(B) at pin-11, and performance.
the shield to frame ground at pin-1.
IC200CMM020-CA Mar. 2010 Changed manufacturing
▪ Four-Wire Master Interface (two shielded twisted pairs, full-duplex location. No changes to
mode) – Slaves receive data from the RTU master over the compatibility, functionality or
MODBUS master pair RXD1 & RXD0. At the same time, the RTU performance.
receives data from the slaves over the MODBUS slave-pair TXD1
& TXD0. Connect RXD1 to SD(A) at pin-12, RXD0 to SD(B) at IC200CMM020-BA Oct. 2008 Updated Power Supply OK
pin 13, TXD1 to RD(A) at pin 10, TXD0 to RD(B) at pin 11, and signal circuitry.
both shields to the frame ground at pin 1. IC200CMM020-AA Jan. 2006 Initial product release
1
VersaMax Serial Communications Module
February 2012 GFK-2423E
Preinstallation Check
6. Power up the System, and Observe the Module LEDs. The
Carefully inspect all shipping containers for damage. If any equipment
LEDs indicate the presence of power and show the operating
is damaged, notify the delivery service immediately. Save the damaged
mode and status of the module.
shipping container for inspection by the delivery service. After
unpacking the equipment, record all serial numbers. Save the shipping
OK
containers and packing material in case it is necessary to transport or
MOD
ship any part of the system. PORT
ACT
2
VersaMax Serial Communications Module
February 2012 GFK-2423E
3
VersaMax Serial Communications Module
February 2012 GFK-2423E
Flow Control and Command Sequencing Part 1: Initialize the Master Serial Port Command Program Block
The remote host’s application program initiates a COMMREQ by First, the serial port is configured with the Initialize Master Serial Port
executing a COMMREQ function block to the communication module in Command (65520)
the remote host such as a RX7i PLC. The communication module
then sends the COMMREQ block as data to the Genius NIU. At the ▪ COMMREQ status value: Zero
remote host, the COMMREQ function block causes the COMMREQ ▪ Sequence Number: set to current sequence value (%AQ0002)
command/data block to be sent to the module once each time the ▪ Protocol: Modbus RTU
COMMREQ is executed.
▪ Mode: Master
When the Genius NIU receives the incoming command/data block, it
sends the block to the Serial Communications Module during the next
▪ Data rate: 9,600 bits/Sec.
output scan. The memory-mapped command uses a sequence ▪ Parity: Even
number in the second word of the COMMREQ structure (the NOWAIT ▪ Flow control: None
mode parameter) to indicate that a new command has been sent.
After power-up, the module indicates when it is ready to receive
▪ Turnaround delay: Zero
commands by returning a Command Status Word value of ▪ Response message time-out: STANDARD (0.5 Sec.)
“COMMAND_READY”. Until the module is ready to receive ▪ Bits per Character: 8 (Not configurable)
commands, changing the sequence number has no effect. Once the ▪ Stop Bits: 1 (Not configurable)
module has issued a status value of “COMMAND_READY”, any
change to the value of the sequence number prompts the module to ▪ Port Interface: (Not configurable)
process the current command in the module’s %AQ memory. The ▪ Half-Duplex Mode: 2-Wire
application program can send the command multiple times by simply ▪ Character-gap time-out: Default
changing the sequence number.
▪ RTS Drop Delay: Zero
The sequence number value of zero has a special meaning – it is
interpreted as a request to clear the module’s input values. Upon
receipt of a 0 sequence number, the CMM020 will check if the entire
%AQ memory area is set to zero. If so, the module’s %AI memory
area will be cleared and the “COMMAND_READY” value will be
returned in the status. Note: Any time the Genius NIU is not receiving
data from the Genius Bus Controller, it sends default data (all zeroes)
to the CMM020. Therefore, the default data is interpreted as a “clear”
request.
Note that if there is non-zero data in the PLC CPU’s %AQ memory
when the Genius NIU powers up, that data will be transferred to the
CMM020 after the Genius NIU joins the Genius Bus. Since the initial
default data sent to the CMM020 is all zeroes, the non-zero data is
interpreted as a command. This may result in behavior that the
application creator did not intend.
The Serial Communications module will only process one command at
a time. Therefore, the remote host’s application program must monitor
the sequence number location in %AI memory for the return of the
sequence number sent with the command. After the module returns the
sequence number, the program logic should check the status value
returned in %AI memory before sending a new command. The module
ignores any new commands that have been sent by incrementing the
sequence number before the command is completed. Likewise, no
new command is sent to the module until the sequence number is
changed. When the current command is complete, the module will
again process incoming commands when the sequence number is
changed.
Example To trigger the command, the sequence number, %AQ0002 must be
In this example, an application program in a host PLC initializes the incremented.
Master Serial Port Command Program Block, then sets up the Send
RTU Preset Query Command (08002).
In the host PLC, the Genius Bus Controller is configured at %AQ0001.
In the I/O Station, the VersaMax Serial Communications module is
configured in the Genius NIU to have 48 %AQ references starting at
%AQ0001 and 32 %AI references starting at %AI0001. In this
example, the AQ memory reference offsets in the PLC are the same as
those used in the Genius NIU. However, that is not necessary.
Note that no commands are sent until reference %AI0001 in the I/O
Station’s Genius NIU indicates the Command Ready Status value of 2.
When the sequence number in %AI0002 matches the value sent in
%AQ0002, it checks the command status value. If the command
status value in %AI0001 is 1, the command has been successfully
executed. The Serial Comm Module is configured as an RTU Master
and ready to accept Modbus RTU commands.
4
VersaMax Serial Communications Module
February 2012 GFK-2423E
Part 2: Set Up the Send RTU Preset Query Command (08002) Initialize RTU Master Port: 65520 (FFF0)
When the sequence number in %AI0002 matches the value sent in Words 0 (Ignored) The required minimum Port Setup
%AQ0002, it checks the command status value. If the command 21 – 22 command/data length includes these
status value in %AI0001 is 1, the command has been successfully words. However, the Modbus RTU
Master ignores their values.
executed. The Serial Communications Module has successfully
transmitted the Modbus RTU command to RTU Slave Device 3. † Denotes serial port default settings
Modem Support: The CMM020 allows the RTS serial port signal to be used
as a modem keying signal. When 0 = HARDWARE is specified, the port asserts
RTU Master Commands Supported RTS and waits for CTS to become active before transmitting. If CTS does not
The Serial Communications module supports RTU Master command become active within 2 seconds, a time-out error code is returned to the status
numbers 65520, 8000, 8001, 8002, and 8003 as described in the location specified in the Send RTU Query COMMREQ. If CTS becomes active
Modbus RTU Communications Manual, GFK-2220, with a few and then is de-asserted while the port is transmitting, up to 5 milliseconds may
elapse before transmission stops. The maximum number of characters
differences as described below. transmitted after CTS is de-asserted is proportional to the data rate. These
Command 65520 – Initialize RTU Master Port values are in addition to the character that is being transmitted at the time CTS is
de-asserted.
If it is necessary to change the serial port settings from the default
values, the Initialize RTU Master Port command can be sent to the
Serial Communications module by placing the values shown below into
the module’s configured %AQ memory references. The module
returns the status of the request in the first word of its configured %AI
memory references and the command’s sequence number in the
second word.
5
VersaMax Serial Communications Module
February 2012 GFK-2423E
RTU Master Command 8000 – Clear RTU Master Diagnostic Status RTU Master Command 8003 – Send RTU Diagnostic Query
Words As described in the Modbus RTU Communications Manual, with the
As described in the Modbus RTU Communications Manual, with the exception that the Status Word Memory Type and location are ignored.
exception that the Status Word Memory Type and location are ignored. The status is returned to the first word of %AI memory.
The status is returned to the first word of %AI memory. RTU Function Codes Supported
RTU Master Command 8001 - Read RTU Master Diagnostic Status The Serial Communications module supports the following RTU
Words Function Codes.
As described in the Modbus RTU Communications Manual, with the
exception that the Status Word Memory Type and location are ignored. Function Code Slave Valid as
The status is returned to the first word of %AI memory. Value Function RTU Master
Reference Broadcast
Name Command
RTU Master Command 8002 -Send RTU Read/Force/Preset Query Dec. Hex. Type Query?
The Send RTU Read/Force/Preset Query command is sent to the 1 01 Read Output Send RTU %Q No
Serial Communications module by placing the values shown below into Table Read/Force/Preset
Query
the module’s configured %AQ memory references. The module
returns the status of the request in the first word of its configured %AI 2 02 Read Input Send RTU %I No
memory references and the command’s sequence number in the Table Read/Force/Preset
second word. Query
3 03 Read Send RTU %R No
Registers Read/Force/Preset
Send RTU Preset Query: 08002 (1F42)
Query
%AQ Word Value Description 4 04 Read Analog Send RTU %AI No
Location Inputs Read/Force/Preset
Word 1 7 Command/Data Block Length Query
Word 2 0-65535 Command Sequence number that will be 5 05 Force Single Send RTU %Q Yes
incremented any time a new command is Output Read/Force/Preset
being sent. Query
Word 3 0 (Ignored) Status Word Memory Type (N/A for 6 06 Preset Single Send RTU %R Yes
memory mapped command, status will Register Read/Force/Preset
be returned in the first word %AI Query
memory.) 7 07 Read Send RTU %Q No
Word 4 0 (Ignored) Status Word Address – 1. (N/A for Exception Read/Force/Preset
memory mapped command, status will Status Query
be returned in the first word %AI 8 08 Loopback/ Send RTU Diagnostic N/A No
memory.) Maintenance Query
Word 5 0 (Ignored) WAIT Mode time-out values are unused 15 0F Force Multiple Send RTU %Q Yes
(N/A for memory mapped command) Outputs Read/Force/Preset
Word 6 0 (Ignored) WAIT Mode time-out values are unused Query
(N/A for memory mapped command) 16 10 Preset Multiple Send RTU %R Yes
Word 7 8002 Command - Send RTU Master Registers Read/Force/Preset
Read/Force/Preset Query Query
17 11 Report Device Send RTU N\A No
Word 8 0 – 247 Target RTU Device Address
Type Read/Force/Preset
Word 9 16 RTU Function Code
Query
Word 10 0-65535 RTU Data Address/Start Address 67 43 Read Scratch Send RTU N\A No
(Application Pad Memory Read/Force/Preset
dependent) Query
Word 11 1 - 51 RTU Number of Points or 16-bit
Registers
Word 12 0 (Ignored) Data Memory Type of source (N/A for
memory mapped command.)
Word 13 0 (Ignored) Data Address of source (N/A for memory
mapped command.)
Words 14 – Data to be sent in the Preset Command.
(14 + Word
11 – 1)