The text of a manual · part 4 of 6
PanelMate Modicon Communication Driver Manual: Modicon PLCs Using Modbus, pages 20 to 27
Pages 20 to 27 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 20
18
Modicon Communication Driver Manual
984 and 584 Modbus Ports The Modicon P230 Programmer is used to set the communications parameters of the 984 and 584 Modbus ports. For the PLC address, use the number that coincides with the PLC ID# you have established for this unit in the PLC Name and Port Table. Depending on the driver selected in the PLC Name and Port Table, select ASCII or RTU mode. Be sure to match the baud rate, parity, data bits, and stop bits with the entries made in the PLC Name and Port Table.
984-38X, -48X, -68X, and -78X The 984-38X, -48X, -68X, and -78X models contain a switch to determine whether port parameters will be set up using the dipswitches or configured with the P230 programmer. See the Modicon manual for your specific PLC for information on the dipswitch settings. A switch is used to determine if the memory or the dipswitch is actually controlling the port parameters. Modicon recommends that the dipswitch setting remain in RTU mode so that a maintenance person can plug in a local Data Access Panel by selecting the dipswitches.
884 Modbus Ports Modbus port 1 parameters may only be configured using the Modicon P230 Programming Panel. Port 2 parameters may be set either by the Programming Panel or by dipswitches. Port 1 is factory-set to the following parameters: Data Bits - 7 (fixed) Mode - RTU Parity - Even Stop Bits - 1 Baud Rate - 9600 Be aware that 884 models with 4-digit serial numbers have no capability for ASCII mode communications, therefore RTU mode must be used for these models. Port 2 parameters may be selected using the dipswitches located at the rear of the 884. The top set of switches is used to set the address of the PLC. This number corresponds to the PLC ID# entered in the PLC Name and Port Table. The address is set as a binary number, where switch 8 is of lowest significance, and switch 1 is of the highest significance.
Table 1 - Port 2 Dipswitch Settings The bottom set of switches is used to set communication parameters. Be sure the parameters of both the 884 and the Operator Station match.
Page 21
Chapter 2: Modbus PLCs Using Modbus
19
Micro 84/J375 Modbus Adapter The J375 Modbus Adapter is a communications interface module for the Micro 84 PLC. The J375 provides one RS232C port connection for use with intelligent RS232 devices. Also, port connections are provided for the Micro 84 controller and a P370 Micro 84 Programmer. The Modbus Adapter provides dipswitches at the rear of its case for address and system parameter selection. The user may select the number of stop bits, parity, and baud rate. Data bits are fixed at 7. Switch set one (S1) on the J375 determines the station address for the Micro 84. Station addresses are entered as binary numbers, where switch 1 is of lowest significance and switch 8 is of highest significance.
Table 2 - Port 2 Dipswitch Settings Switches 1, 2, 3 and 4 of switch set two (S2) are used to configure the baud rate for the J375. Switches 5 and 6 are used to configure the parity for the J375. Note:
When communicating with the Operator Station using ASCII Modbus, the parity selected must be ODD or EVEN.
Switch 7 of switch set two (S2) is used to select the number of stop bits for the J375. With switch 7 set ON, two stop bits are selected. With switch 7 set OFF, one stop bit is selected. Switch 8 of switch set two (S2) selects ASCII mode when it is OFF, or RTU mode when it is ON. Switch Set 2 Dipswitch Settings
Page 22
20
Modicon Communication Driver Manual
484 PLC/J474 Modbus Communication Interface The J474 Communication Interface allows for a computer or other intelligent devices to communicate to a 484 PLC. The J474 may be connected to the Modbus or an RS232 device via a single 30-pin connector. All user options such as baud rate, parity, and stop bits are selected by the wiring of this connector. The following tables include pin descriptions and selection options, for the J474 Modbus Communication Interface.
Table 3 - Port Pinouts for the J474 Interface Baud rate is selected by connecting pins 9, 11, 13 and 15 to signal ground at pin 7. The following chart summarizes selection options, where YES = connect to pin 7 and NO = leave unconnected.
Table 4 - Baud Rate Selection for the J474 Interface
Page 23
Chapter 2: Modbus PLCs Using Modbus
21
The slave address (PLC ID#) is selected by connecting pins 24, 22, 18, 16, 14, 12, 10 and 8 to signal ground at pin 26. A binary pattern is used, where zero bit = connect to pin 26 and a one bit = leave unconnected. For example, the address 11 in binary is 00001011, which requires connection of pins 24, 22, 18, 16, and 12 to pin 26, as shown below.
Table 5 - Example for a Slave Address of 11 Specific modes of operation are selected by connecting pins 28 and 30 to signal ground at pin 26. The following chart summarizes selection options where YES = connect to pin 26 and NO = leave unconnected.
Table 6 - Mode Selection The number of stop bits and parity are selected by connecting pins 17, 19, and 21 to signal ground at pin 7. The following chart summarizes selection options where YES = connect to pin 7 and NO = leave unconnected.
Table 8 - Stop Bit and Parity Selection
Page 24
22
Modicon Communication Driver Manual
Modicon Word and Bit References The following section describes the use of Modicon 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 which 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. See the “Word and Bit References” topic in the Configuration Software Online Help for a more detailed explanation of word and bit references, including format descriptions.
Modicon Micro 84, 184, 384, and 484 The Modicon PLCs listed above use decimal addresses. The Operator Station format default is BIN3. The following list contains the supported memory types. 0XXX Coils/discrete outputs 1XXX Discrete inputs (read only) 3XXX Input registers (read only) 4XXX Holding/output registers The following is the format for a register reference. [rr] rr
PLC reference number of the register.
The following is the format for an input reference. [ii] ii
PLC reference number for an input.
The following is the format for a coil reference. [cc] cc
PLC reference number for a coil.
The Operator Station cannot write to inputs or input registers. Therefore, all control button PLC bit references in the Operator Station’s editors refer to Modicon coils. Bit references in expressions refer to Modicon inputs or outputs. All references to words refer to Modicon registers. Modicon PLC model Micro84 can read up to 16 words per read cycle. Models 184 and 484 will allow a maximum of 25 contiguous words per read. The maximum number of unused words for the three above mentioned PLCs is 10. The Operator Station generates another read when more than 10 unused PLC words are encountered.
Page 25
Chapter 2: Modbus PLCs Using Modbus
23
Modicon 584, 884, and 984 Register, Input and Coil References The Modicon PLCs listed above use decimal word addresses. The Operator Station format default is BIN4. The following list contains the supported memory types. 0XXXX
Coils/discrete outputs
0XXXXX 1XXXX
Discrete inputs (read only)
1XXXXX 3XXXX
Input registers (read only)
3XXXXX 4XXXX
Holding/output registers
4XXXXX Note:
The Modicon PLC model 984-785 allows six-digit addressing and holding/output register bit writes.
Note:
Individual bit writes to the holding/output register are not allowed (except for the 984-785 PLC).
The following is the format for a register reference. [rr] rr
PLC reference number of the register.
The following is the format for an input reference. [ii] ii
PLC reference number for an input.
The following is the format for a coil reference. [cc] cc
PLC reference number for a coil.
Page 26
24
Modicon Communication Driver Manual
The following is the format for a register bit reference. [rr bb] rr
PLC reference number of the register.
bb PLC reference number of the bit position. The bit positions are numbered from 1 to 16, least significant to most significant, respectively. Note that leading 0’s are not required. Note:
The register number must be followed by a space.
The Operator Station cannot write to inputs or input registers. Therefore, all control button PLC bit references in the Operator 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 words refer to Modicon registers. The Modicon PLC models 584, 884 and 984 up to 25 contiguous words per single read. The maximum number of unused words is 10. The Operator Station generates another read when more than 10 unused PLC words are encountered. Examples The following are examples of valid PLC references which may be assigned in the Operator Station expression fields. Word References Reference Description [40010] Output register 40010 [30001] Input register 30001 [401000] Output register 401000 Bit References Reference Description [25] Coil 25 [10009] Discrete input 10009 [40098 16] Bit 16 of output register 40098 Note: Bit writes to 40000 registers cannot be performed.
Page 27
Chapter 2: Modbus PLCs Using Modbus
25
Maintenance Access The Maintenance Template 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:
A double word reference (ID, QD, MD, or SMD) should not be entered as the default reference in the Maintenance Template.
Note:
When a new reference is entered on an Operator Station, the Maintenance Template will remain in a paused state until the Start Monitor control button or the Chng soft function key is pressed. When the Start Monitor control button or the Chng soft function is pressed, the Operator Station will parse the reference. (Parsing means checking the syntax and range of the reference to ensure that is supported by the driver.)
Note:
A Maintenance Template cannot be used to monitor unsolicited references.