The text of a manual · part 5 of 6
PanelMate Modicon Communication Driver Manual: Modicon PLCs Using Modbus Plus
Pages 28 to 41 of 49, from PanelMate Modicon Communication Driver Manual
The original document is the PDF (719 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Modicon J375, AEG J375, Gould J375 and Schneider J375
Page 28
26
Modicon Communication Driver Manual
Modicon PLCs Using Modbus Plus
3 This chapter explains how to use your PanelMate Power Series operator stations on the Modbus Plus network. Specifically, this chapter includes: •
Introduction
•
Memory
•
Possible Configurations
•
Cabling
•
Communications parameters
•
Configuration entries
•
Switch settings
•
Modicon word and bit references
•
Unsolicited Writes to the operator station
•
Maintenance access
Page 29
Chapter 3: Modicon PLCs Using Modibus Plus
27
Introduction An Operator Station, with an optional Modbus Plus interface board, can communicate with Modicon controllers that have Modbus Plus compatibility. The Operator Station appears as a node on the Modbus Plus network (similar to an SA85 network adapter). The interface board has responsibility for establishing and maintaining communications across the network. No ladder logic is required to support the interface.
Memory The following memory types are supported by the Modbus Plus interface board: XXXX Coils/discrete outputs XXXX Discrete inputs (read only) 3XXXX Input Registers (read only) 4XXXX Holding/output registers 900XX Global data (read only; range 1-32) G00XX Global data (Operator Station’s node range; 1-32) Note:
G00XX requires the use of the GLBL prefix.
Page 30
28
Modicon Communication Driver Manual
Possible Configurations Direct The Operator Station may be connected directly to a Modicon controller having Modbus Plus capability. The Operator Station must have a different network node address than the Modicon controller (see Switch Settings for more information on setting node addresses).
Page 31
Chapter 3: Modicon PLCs Using Modibus Plus
Multiple Controllers on a Single Modbus Plus Network In this configuration, the Operator Station acts like a node on the immediate Modbus Plus network. Each node on the network must have a separate node address as in the following example (see the Switch Settings section for more information on setting node addresses). Operator Station/Modbus Plus - Termination Node
Operator Station/Modbus Plus - Inline Node
29
Page 32
30
Modicon Communication Driver Manual
Multiple Controllers on Multiple Modbus Plus Networks An Operator Station can communicate with up to 32 controllers at once. An Operator Station communicates with a controller through a maximum of four bridges. An Operator Station communicates with another Operator Station through a maximum of three bridges. Note:
The address of the system on the 5th byte of the routing address must be a number less than 8.
Sample Operator Station/Modbus Plus Network
Page 33
Chapter 3: Modicon PLCs Using Modibus Plus
31
Cabling Diagrams Communications between the Operator Station and Modbus Plus follows the Modicon standard. See the PanelMate Power Series Modbus Plus Interface Instructions IL (01-50463) for additional information. The Operator Station should be wired like a node on the Modbus Plus Network. The Modicon Part number for the connector required is: AS-MBKT-085 (if the Operator Station is at an inline node) or AS-MBKT-185 (if the Operator Station is at an extreme end of the network). The figures below shows a single and dual cabled Modbus Plus interface board. Note:
The Dual Channel Modbus Plus interface board is no longer available.
Single Cable Interface Board
Dual Cable Interface Board
LEDs The green LED is used to help determine the current status of the Modbus Plus interface board. The following is a list of possible indications: Note:
The two red LEDs, labeled A and B, on the dual cabled Modbus Plus interface board indicate communication errors in either the Modbus Plus A port or the Modbus Plus B port. If an error occurs, the corresponding red error LED will turn on while the communication error exists. Network Communication Status Modbus Plus status is shown by flashing a repetitive pattern on the green indicator. The patterns are: Six flashes per second The Modbus Plus interface board’s normal operating state. The indicator flashes each time the board transmits at its Modbus Plus port. All nodes on the network should be flashing this pattern. If a port indicator is OFF continuously, the board is not transmitting at its port. One flash per second The Operator Station node is offline after just being powered up, or after hearing a message from another node with the same network address (duplicate addresses are not allowed). In this state, the node monitors the network and builds a table of active nodes and token-holding nodes. It remains in this state for five seconds, then attempts to go to its normal operating state. Two flashes, then OFF for two seconds The Operator Station node is hearing the token being passed among other nodes, but is never receiving the token. Check the network link for an open or short circuit or defective termination.
Page 34
32
Modicon Communication Driver Manual
Three flashes, then OFF for 1.7 seconds The Operator Station node is not hearing any other nodes. It is periodically claiming the token, but finding no other node to pass it. Check the network link for an open or short circuit or defective termination. Four flashes, then OFF for 1.4 seconds The Operator Station node has heard a valid message from another node that is using the same address as this node. The node remains offline in this state as long as it continues to hear the duplicate address. If the duplicate address is not heard for five seconds, the node then changes to the pattern of one flash every second.
Page 35
Chapter 3: Modicon PLCs Using Modibus Plus
33
Communication Parameters When using the Modbus Plus interface board, the only communication parameter that needs to be set is the I/O port. In the PLC Name and Port Table, configure the Use field for the I/O port to MODBUS+.
Configuration Entries A sample PLC Name and Port Table is shown below.
In the PLC Name Table, under the ID# field, the routing address(es) must be specified. The Operator Station can communicate through a maximum of four bridges. When entering routing information, each bridge address is followed by a command. The last routing address represents the ID# of the controller the Operator Station will be communicating with.
Sample Addressing for Configuration [PLC8,40055] Register 40055 of Controller 19 Network #4 [PLC4, 30125] Register 30125 of Controller 12 Network #2 [GLBL, G0030] Operator Station Global Register 30 [90030.01] Coil 16 of Global Register 30 of Controller 6 Network #1 [PLC7,00055] Coil 00055 of Controller 15 Network #4 [10077] Contact 10077 of Controller 6 Network #1
Page 36
34
Modicon Communication Driver Manual
Switch Settings The following is a summary of the necessary settings for each of the modules. Be sure to check with Cutler-Hammer Support Services for any possible updates or changes if you encounter any difficulty.
Operator Station The Operator Station has one switch setting that is used to set the network node address. The dipswitch is located on the right side of the unit, above the 9-pin Modbus Plus port. The Operator Station node address must not be the same as any other node address on the immediate network Note:
The dipswitch on the dual cabled Modbus Plus Interface board is located at the rear of the board.
984-385, 984-484, 984-685, 984-785, Compact 984-145, 984-385E, 984-485E, 984-685E,984-785E, and Quantum The 984-385,-485,-685,-785, and Compact 984-145 models have a switch setting for configuring the node address. . In the example below, switch 1 and 2 are up making the address 4. It’s in binary format starting at 1. Meaning, you must always add 1 to the binary number. (3+1=4)
Modbus+ Card dip switch
1 2 3 4 5 6 7 8 In the example above up=on, down=off, and white represents the switch head.
Page 37
Chapter 3: Modicon PLCs Using Modibus Plus
Standard Binary Table
Address 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Switch Position 1 2 3 4 5 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 1 1 1 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 1 0 1 0 1 1 0 0 1 1 1 0 1 1 1 1 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 1 1 1 1 0 1 1 0 0 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1
Address 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Switch Position 2 3 4 5 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 1 1 0 0 1 1 0 0 0 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 1 1 0 1 1 1 0 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1 0 0 1 1 0 0 1 1 1 0 1 1 1 0 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1
6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Note: Modicon uses binary format starting at 1. This means that you must always add 1 to the binary number in the above table.
35
Page 38
36
Modicon Communication Driver Manual
Modbus Plus Word and Bit References The following section describes the use of Modbus Plus word and bit references in your configuration. The general word referencing method is: [plcname,word#format] The “plcname” is the name of the designated PLC as listed in the PLC Name and Port Table. The “word” is the reference number (address) of the word or register to be read or written. The “#format” is a code that specifies the format of the data being read or written. The “plcname” and “#format” are optional. The general bit referencing method is: [plcname,bit] The “plcname” is the designated PLC as listed in the PLC Name and Port Table. The “bit” is the reference number (address) of the bit, coil, or input to be written or read.
984-385, 984-485, 984-685, 984-785, Compact 984-145, 984-385E, 984-485E, 984-685E, 984-785E, and Quantum The Modicon controllers listed above use decimal word addresses. The Operator Station format default is BIN4. The following list contains the memory types supported by the Operator Station. 0XXXX
Coils/discrete outputs
1XXXX
Discrete inputs (read only)
3XXXX
Input registers (read only)
4XXXX
Holding/output registers
900XX
Global data (Modicon Controllers; read only)
G00XX
Global data (Operator Station node)
An Operator Station with a Modbus Plus interface board cannot write to inputs, input registers, or “900XX” global registers; therefore, control button bit references in the Operators Station editors refer to Modicon coils (or holding/output registers for the 984-785 PLC). Bit references in expressions refer to Modicon inputs or outputs. All references to Controller words refer to Modicon registers. Leading 0’s are not required unless specified. The Modicon 984-X85 and Quantum controllers allow up to 100 contiguous words per single block read. The maximum number of unused words is 98. If the Operator Station encounters 98 or more unused words, then another block read is generated.
Page 39
Chapter 3: Modicon PLCs Using Modibus Plus
37
The following is the format for a register reference: [3rrr] or [4rrr] rrr Controller reference number of the register. The following is the format for a discrete input reference: [1iiii] iiii Controller reference number for an input reference. The following is the format for a coil reference: [0cccc] ccccController reference number for a coil reference. The following is the format for a register bit reference: [3rrrr bb], [4rrrr bb], [3rrrr,bb], or [4rrrr.bb] rrrr Controller reference number of the register. bb Controller reference number of the bit position. The bit positions are numbered 1 to 16, least significant to most significant. Note: The register number must be followed by a space or a period. Input register bit writes are not allowed. Output register bit writes are not allowed (except for the 984-785 PLC). The following is the format for a global data word read from a Modicon Controller: [900rr] rr
Controller reference number of the register.
The following is the format for a global data bit read from a Modicon Controller: [900rr bb] or [900rr.bb] rr Controller reference number of the register. bb Controller reference number of the bit position. The bit positions are numbered from 1 to 16, least significant to most significant. An Operator Station has 32 global words, numbered 1 to 32. The global data area on the Operator Station can be written to and read from. The following is the format for a global data word read from a Operator Station: [GLBL,G00rr] rr
Operator Station reference number of the register.
Page 40
38
Modicon Communication Driver Manual
The following is the format for a global data bit read from a Operator Station: [GLBL,G00rr bb] or [GLBL, G00rr.bb] rr Operator Station reference number of the register. bb Operator Station reference number of the bit position. The bit positions are numbered from 1 to 16, least significant to most significant. Note: An Operator Station cannot directly read or write to another Operator Station. Note:
An Operator Station’s most significant bit (MSB) is bit 16 and the Modicon PLC’s most significant bit (MSB) is 1. Refer to the figure below.
Unsolicited Writes to the Operator Station with Modbus Plus An Operator Station can receive unsolicited writes from a Modicon controller provided the Operator Station and the specified address is referenced in the Operator Station. The Modicon controller performs unsolicited writes through the use of the MSTR function block. The Master Function Block consists of 4 main components: the control block, data start, data size, and the enable input.
The Control Block - This block must be configured as follows:
Note:
4TTTT
Operation Type (1 for write)
4TTTT+1
Error Status (reported by controller)
4TTTT+2
Length
4TTTT+3
Slave Device Data Area
4TTTT+4
Routing 1
4TTTT+5
Routing 2
Complete path to the Operator
4TTTT+6
Routing 3
Station from controller
4TTTT+7
Routing 4
4TTTT+8
Routing 5
The routing address after the Operator Station address should be set to one. Any unused routing addresses should be set to zero.
Page 41
Chapter 3: Modicon PLCs Using Modibus Plus
39
Note:
For a Operator Station to read data from another Operator Station, the routing address after the Operator Station address should be set to 1. Data Block Size - This represents the length of the data block (must match the third word of the control block 4TTTT+2). 00ZZZ
Length of the data block (1-100).
For more information concerning Modicon function blocks, consult Modicon’s 984 Programmable Controller Systems Manual.
Maintenance Access The Maintenance Template or Page will access all memory locations supported by the PLC driver as defined in this manual. When running online, you may change the PLC reference. You must enter the correct mnemonics and numeric values and create a legal reference to change a PLC reference. Note:
When a new reference is entered on a Operator Station, the Maintenance Template will remain in a paused state until the Start Monitor control button is pressed. When the Start Monitor control button is pressed, the Operator Station will parse the reference. (Parsing means checking the syntax and range of the reference to ensure that it is supported by the driver.)