The text of a manual · part 3 of 8
Model 325 URICA Universal Remote Interface for Control & Acquisition User's Manual, pages 21 to 30
Pages 21 to 30 of 74
The original document is the PDF (1.9 MB). 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 Moore URICA Model 325
Page 21
UM325-1 INSTALLATION
2.3.3.4 RS422 Connections
URICA supports 4-wire RS422 communications. Table 2-4 shows these connections to the terminal block. Shields can be connected to the common terminals. The bus should be terminated with a 120 ohm resistor (Part Number 14700-121G) at both ends.
TABLE 2-4 RS422 Connections
TERMINAL CONNECTION Receive + (RX+) Common
Receive - (RX-) Transmit + (TX+)
Common Transmit - (TX-)
CO; An BY]
2.3.3.5 RS485 Connections
URICA supports 2-wire RS485 communications. Table 2-5 shows these connections to the terminal block. Shields can be connected to the common terminals. The bus should be terminated with a 120 ohm resistor (Part Number 14700-121G) at both ends.
TABLE 2-5 RS485 Connections
TERMINAL CONNECTION 6 Transmit + 7 Common 8 Transmit -
October 1995 2-9
Page 22
INSTALLATION UM325-1
2-10 October 1995
Page 23
UM325-1 COMMUNICATION SETTINGS
3. COMMUNICATION SETTINGS
This section describes the communication settings for the Model 325 URICA.
3.1 BIT SWITCH SETTINGS
This section briefly describes and locates the hardware configuration switches in URICA. These switches are set to establish communications compatibility with a computer or modem.
Settings are both hardware and software dependent. The user must set the switches at time of installation. Refer to Figure 3-1 for bit switch locations.
IMPORTANT
URICA reads the bit switch settings only on power up. After changing the bit switch settings, remember to repower URICA. Otherwise, the changes will not take affect.
3.1.1 Switch 1
Switch | is not used.
3.1.2 Switch 2
This section describes the bit switch settings for switch number 2.
3.1.2.1 SW2-1, -2, -3 Baud Rate Selection
The baud rate of the computer port 1s determined by the positions of the baud rate selection switches on SW2. The following baud rates are available:
TABLE 3-1 Baud Rate Selection
SW2-1 SW2-2 > SW2-3 > BAUD RATE
OFF OFF OFF 9600 OFF OFF ON 19200 OFF ON OFF 38400 OFF ON ON 57600 ON OFF OFF 115200 ON OFF ON 300 ON ON OFF 1200 ON ON ON 2400
October 1995 3-1]
Page 24
COMMUNICATION SETTINGS
UM325-1
3.1.2.2 SW2-4 Data Bits
The number of data bits can be set to 7 or 8 as follows:
TABLE 3-2 Data Bits
SW2-4 #of Data Bits OFF 8 ON 7
3.1.2.3 SW2-5, 6 Parity The parity settings are shown in Table 3-3.
TABLE 3-3 Parity
SW2-5 SW2-6 Parity OFF OFF NONE OFF ON ODD ON OFF EVEN ON ON NONE
3.1.2.4 SW2-7 Computer Port Configuration
The selection of either RS232 or RS422/485 is determined by bit position SW2-7.
TABLE 3-4 Computer Port Configuration
SW2-7 Communications OFF RS232 ON RS422/485
3-2
October 1995
Page 25
UM325-1
COMMUNICATION SETTINGS
FIGURE 3-1 Model 325 URICA Bit Switches
October 1995
3-3
Page 26
COMMUNICATION SETTINGS UM325-1
3.1.2.5 SW2-8 Serial Setup 1
The options for this bit switch are defined by the position of SW2-7.
SW2-7 = OFF: COMMUNICATION TERMINAL MODE When RS232 communications is selected in bit switch 2-7, then bit switch SW2-8 selects the communication terminal mode of the station.
TABLE 3-5 DTE/DCE Terminal Setting
SW2-8 Communication Terminal OFF DCE ON DTE
SW2-7 = ON: RS422/485 4 or 2 WIRE MODE When RS485 communication is selected, SW2-8 is used to specify 2-wire or 4-wire communications.
TABLE 3-6 2-Wire or 4-Wire Mode
SW2-8 # of Wires OFF 4-wire ON 2-wire
3.1.3 Switch 3
This section describes the settings for switch number 3.
3.1.3.1 SW3-1 CTS Hardware Handshaking
This bit is used when the device communicating with URICA via RS232 requires CTS hardware handshaking. This most often occurs when URICA is attached to a Hayes® compatible modem.
TABLE 3-7 CTS Hardware Handshaking
SW3-1 CTS HANDSHAKING OFF Disabled ON Enabled
3.1.3.2 SW3-2 Reserved - Not used.
3-4 October 1995
Page 27
UM325-1 COMMUNICATION SETTINGS
3.1.3.3 SW3-3 Protocol This bit is used to select the MODBUS protocol.
TABLE 3-8 Protocol
SW3-3 Protocol OFF Reserved ON MODBUS
3.1.3.4 SW3-4 Reserved - Not used.
3.1.3.5 SW3-5 32-Bit Word Ordering
When this switch is OFF, URICA will set the byte ordering for 32-bit values (floating point, double integers), similar to Modicon™ PLCs.
That is, a Modicon 32-bit value is sent as two registers and the transmitted byte order is: Register x = bytes | and 0, Register x+1 = bytes 3 and 2
For example, a floating point value in a Modicon PLC-compatible slave device is stored in Registers 40001 and 40002. If the current value is 100.00, it would be transmitted via MODBUS protocol as:
40001 40002 00 00 42 C8
Using standard IEEE single-precision floating point format, this would be interpreted as the value 100.00 REAL.
When this parameter is ON, URICA "word-swaps" the byte order from the Modicon byte order. That is, the value above would be transmitted as:
40001 40002 42 C8 00 00
The word swapping is done only for REAL, DINT, or UINT data.
3.1.3.6 SW3-6,7,8: Reserved - Not Used
October 1995 3-5
Page 28
COMMUNICATION SETTINGS UM325-1
3.1.4 SWITCH 4 - MODBUS Address Selection
A MODBUS address can range from | to 247. The MODBUS address of URICA is determined by adding one (1) to the sum of the switches in the ON position. Table 3-9 shows the value of each switch.
TABLE 3-9 MODBUS Address Selection
Switch Value
SW4-1 ! SW4-2 2 SW4-3 4 SW4-4 8 SW4-5 16 SW4-6 32 SW4-7 64 SW4-8 128
For example, if SW4-2 and SW4-4 are ON, the address is: 2+84+1=11
An address greater than 247 is not valid.
3-6 October 1995
Page 29
UM325-1 MODBUS COMMUNICATIONS
4. MODBUS COMMUNICATIONS
4.1 DESCRIPTION
The MODBUS protocol is used by AEG Modicon (formerly Gould) programmable logic controllers (PLCs) and by many types of specialty instruments such as analyzers, chromatographs, weigh scales, HMIs, RTUs, and other DCSs. MODBUS is a master/slave protocol in which a single master can address multiple slaves. The slave devices do not initiate communication; they wait for a command from the master, which issues a request to read or write data values.
Many devices in the control industry act as MODBUS masters, such as Human-Machine Interfaces (HMIs), Remote Terminal Units (RTUs), data acquisition systems, and distributed control systems. The slave URICA will respond to commands from the MODBUS master to change (write) values to the attached field devices.
In the MODBUS system, coils are addresses from 00001 to 09999 (1 to 9999), input registers are 30001 to 39999, and holding registers are 40001 to 49999.
Analog values stored in URICA, such as REALs, DINTs, UINTs, STRINGs, and 1 reg WORDs are mapped to input registers (3xxxx) or holding registers (4xxxx). Input registers are read-only and will always represent the actual values retrieved from the field devices. Holding registers are read/write and act in a promissory nature. When a write is sent to a holding register, the holding register will change to reflect the desired value which was written. Because there is a delay between MODBUS communications and HART communications, the holding register is not the actual value received from the HART field device until the HART response, caused by the write command, is received from the field device. The purpose of this is to give the operator immediate feedback when writing to a register. it also eliminates a bouncing effect, if the data is updated after the operator change but just prior to the write command being sent out the HART port.
Discrete values are mapped to coils (Oxxxx). These values are not promissory in nature. Therefore, when a change is made, the data stored in URICA will not be changed until a response is received from the field device.
4.2 MAPPING
The MODBUS register mapping is split in sections for each field device and the Model 325 station information. This is shown in the database layout table in Appendix A.
The information for each poll address is separated by data type. By separating by data type, MODBUS masters which cannot mix data types will be able to do multiple register reads. To reduce the number of MODBUS transactions, each field device has the most commonly accessed data in the Quick Access section of the database. For example, when connected to 4 Model 348 FIELDPACs, only | MODBUS transaction is required to retrieve the Quick Access information from all 4 devices.
Refer to 325 station, 348, XTC and Generic transmitter database maps located in Appendices A, B C, D, and E.
October 1995 4-]
Page 30
MODBUS COMMUNICATIONS UM325-1
4.3 MESSAGE FORMATS
The following MODBUS messages are supported by URICA.
4.3.1 Read Coil Status
This command reads the on/off status of Output Coils (addresses 00001 to 09999 decimal) in the addressed slave. The maximum number of coils that can be read by a MODBUS master using Command O1 is 2000.
4.3.2 Read Input Status
This command reads the on/off status of Input Coils (addresses 10001 to 19999 decimal) in the addressed slave. The maximum number of coils that can be read by a MODBUS master using Command 02 is 2000.
4.3.3 Read Holding Registers
This command reads the Holding Registers (addresses 40001 to 49999 decimal) in the addressed slave. The maximum number of registers that can be read by a MODBUS master using Command 03 is 126 registers for values with 2 bytes (i.e. 16-bit WORD, INT, UINT, BOOL) or 63 for values with 4 bytes (i.e. 32-bit REAL, DINT, UINT).
4.3.4 Read Input Registers
This command reads the Input Registers (addresses 30001 to 39999 decimal) in the addressed slave. The maximum number of registers that can be read by a MODBUS master using Command 04 is 126 registers for values with 2 bytes (i.e. 16-bit WORD, INT, UINT, BOOL) or 63 for values with 4 bytes (i.e. 32-bit REAL, DINT, UINT).
4.3.5 Force Single Coil
This command changes the state of a single Oxxxx coil.
4.3.6 Preset Single Register
This command changes the value of a single 4xxxx Holding Register.
4-2 October 1995