RKC INSTRUMENT AG500 Communication Instruction Manual

Digital indicator
Table of Contents

Advertisement

Quick Links

Digital Indicator
AG500
Communication
Instruction Manual
IMR02F09-E1
RKC INSTRUMENT INC.
®

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AG500 and is the answer not in the manual?

Questions and answers

Summary of Contents for RKC INSTRUMENT AG500

  • Page 1 Digital Indicator AG500 Communication Instruction Manual IMR02F09-E1 RKC INSTRUMENT INC. ®...
  • Page 2  Modbus is a registered trademark of Schneider Electric.  Company names and product names used in this manual are the trademarks or registered trademarks of the respective companies. All Rights Reserved, Copyright  2014, RKC INSTRUMENT INC.
  • Page 3 Thank you for purchasing this RKC product. In order to achieve maximum performance and ensure proper operation of your new instrument, carefully read all the instructions in this manual. Please place the manual in a convenient location for easy reference. SYMBOLS : This mark indicates precautions that must be taken if there is danger of electric WARNING...
  • Page 4 CAUTION  This product is intended for use with industrial machines, test and measuring equipment. (It is not designed for use with medical equipment and nuclear energy.)  This is a Class A instrument. In a domestic environment, this instrument may cause radio interference, in which case the user may be required to take additional measures.
  • Page 5: Table Of Contents

     Modbus ......................... 3 2.2 Wiring for Host Communication ............... 4 2.2.1 Connection to the RS-485 port of AG500 ..............4  Communication terminal number and signal details (RS-485) ........4  Connection to the RS-485 port of the host computer (master) ........4 ...
  • Page 6 Page 4. MODBUS COMMUNICATION PROTOCOL ....... 28 4.1 Message Format .................... 28  Slave address ......................28  Function code ......................28  Data ..........................28  Error check ........................28 4.2 Function Code ....................29 4.3 Communication Mode ..................29 4.4 Slave Responses ...................
  • Page 7: Outline

    1. OUTLINE  RKC communication and Modbus The communication function makes it possible to monitor and set the data of the Digital Indicator AG500 from a computer. The AG500 interfaces with the host computer via Modbus or RKC communication (ANSI X3.28-1976 subcategories 2.5 and A4) protocols.
  • Page 8: Host Communication

    2. HOST COMMUNICATION 2.1 Host Communication Specifications  RKC communication Interface: Based on RS-485, EIA standard Based on RS-422A, EIA standard Connection method: RS-485: 2-wire system, half-duplex multi-drop connection RS-422A: 4-wire system, half-duplex multi-drop connection Synchronous method: Start-stop synchronous type Communication speed: 1200 bps, 2400 bps, 4800 bps, 9600 bps, 19200 bps, 38400 bps Data bit configuration: Start bit: 1 Data bit: 7 or 8...
  • Page 9: Modbus

    2. HOST COMMUNICATION  Modbus Interface: Based on RS-485, EIA standard Based on RS-422A, EIA standard Connection method: RS-485: 2-wire system, half-duplex multi-drop connection RS-422A: 4-wire system, half-duplex multi-drop connection Synchronous method: Start-stop synchronous type Communication speed: 1200 bps, 2400 bps, 4800 bps, 9600 bps, 19200 bps, 38400 bps Data bit configuration: Start bit: 1 Data bit: 8...
  • Page 10: Wiring For Host Communication

    WARNING To prevent electric shock or instrument failure, turn off the power before connecting or disconnecting the instrument and peripheral equipment. 2.2.1 Connection to the RS-485 port of AG500  Communication terminal number and signal details (RS-485) Communication terminals RS-485...
  • Page 11: Connection To The Rs-232C Port Of The Host Computer (Master)

    2. HOST COMMUNICATION  Connection to the RS-232C port of the host computer (master) Use a RS-232C/RS-485 converter with an automatic send/receive transfer function. Host computer Paired wire AG500 (Slave) RS-485 (Master) () RS-232C T/R (A) 26 T/R (A) T/R (B)
  • Page 12: Connection To The Usb Of The Host Computer (Master)

    2. HOST COMMUNICATION  Connection to the USB of the host computer (master) Connect the USB communication converter between the host computer and the AG500. Host computer (Master) Connect to USB port USB cable (COM-K accessory) Paired wire RS-485 AG500 (Slave) ()
  • Page 13: Connection To The Rs-422A Port Of Ag500

    2. HOST COMMUNICATION 2.2.2 Connection to the RS-422A port of AG500  Communication terminal number and signal details (RS-422A) RS-485 Communication terminals Terminal Signal name Symbol Signal ground Send data T (A) 25 26 27 Send data T (B) Receive data...
  • Page 14: Connection To The Rs-232C Port Of The Host Computer (Master)

    R (B) R(B) Connect according to the label names as   they are without crossing the wires.  AG500 (Slave) Screw size: M3×7 (with 5.8×5.8 square washer) Recommended tightening torque: 0.4 N・m (4 kgf・cm) () Recommended solderless terminals: T (A) Manufactured by J.S.T MFG CO., LTD.
  • Page 15: Connection To The Usb Of The Host Computer (Master)

    2. HOST COMMUNICATION  Connection to the USB of the host computer (master) Connect the USB communication converter between the host computer and the AG500. Host computer (Master) Connect to USB port USB cable Paired wire (COM-K accessory) RS-422A AG500 (Slave) ()
  • Page 16: Setting

    2.3 Setting To establish communication parameters between host computer (master) and AG500 (slave), it is necessary to set the following parameters on each AG500 (slave) in the function block 60 (F60.) of engineering mode and setup setting mode. 2.3.1 Display sequence...
  • Page 17: Description Of Each Parameter

    0. Communication speed 1.2: 1200 bps Set the same communication speed 19.2 2.4: 2400 bps for both the AG500 (slave) and the (bPS) 4.8: 4800 bps host computer (master). 9.6: 9600 bps 19.2: 19200 bps 38.4: 38400 bps...
  • Page 18: Setting Procedure Example

    When all communication parameter settings have been completed, turn the power off and then on to make the new set values take effect. If you have locked the AG500 setting data so that it cannot be changed, the lock must be released before configuring the communication settings.
  • Page 19 2. HOST COMMUNICATION As an example, factory set value “0 (RKC 1. Turn on the power of the AG500. communication)” is set. Communication High-lighted digit  2. Go to the Engineering mode. protocol  0000 Press the key for 2 seconds or more while...
  • Page 20 2. HOST COMMUNICATION    Press the key to set the communication 7. Go to the Setup setting mode. speed. Press the key while pressing the key at Setting range: 1.2: 1200 bps measured value (PV) monitor until Setup setting 2.4: 2400 bps mode is displayed.
  • Page 21 2. HOST COMMUNICATION  11. Set the Interval time. 13. Enable communication parameter Press the key. The display goes to the When all communication parameter settings have interval time. been completed, turn the power off and then on to make the new set values take effect. Interval time Store If you changed the communication...
  • Page 22: Communication Requirements

    AG500 to send data: - Response wait time after AG500 sends BCC in polling procedure - Response wait time after AG500 sends ACK or NAK in selecting procedure Response send time is time when interval time is set at 0 ms.
  • Page 23: Rs-485 (2-Wire System) Send/Receive Timing (Rkc Communication)

    Response send time after the AG500 receives BCC + Interval time b: Response wait time after the AG500 sends ACK or Response wait time after the AG500 sends NAK To switch the host computer from transmission to reception, send data must be on line.
  • Page 24: Rkc Communication Protocol

    (Fast selecting is the selecting method used in this AG500).  The polling/selecting procedures are a centralized control method where the host computer controls the entire process. The host computer initiates all communication so the AG500 responds according to queries and commands from the host.
  • Page 25: Polling Procedures

    The device address specifies the AG500 to be polled and each AG500 must have its own unique device address. This data is a device address of the AG500 to be selected and must be the same as the device address set value in item 2.3 Setting (P. 10).
  • Page 26  When there is an error in the data type (5) No response from the AG500 The AG500 will not respond if the polling address is not received correctly. It may be necessary for the host computer to take corrective action such as a time-out.
  • Page 27 An acknowledgment ACK is sent by the host computer when data received is correct. When the AG500 receives ACK from the host computer, the AG500 will send any remaining data of the next identifier without additional action from the host computer.
  • Page 28: Polling Procedure Example (When The Host Computer Requests Data)

    (1) When the measured value (PV) monitor (identifier: M1) is polled Host computer send Host computer send Address Identifier Identifier Data AG500 send (2) Polling the next identifier with ACK (acknowledgment) after polling ends Host computer send Host computer send Address Identifier To *1...
  • Page 29: Error Transmission

    3. RKC COMMUNICATION PROTOCOL  Error transmission Host computer send Host computer send Error data Address Identifier To *1 Identifier Data AG500 send Host computer send Identifier Data AG500 re-send IMR02F09-E1...
  • Page 30: Selecting

    Host computer sends selecting address for the selecting sequence.  Address (2 digits) This data is a device address of the AG500 to be selected and must be the same as the device address set value in item 2.3 Setting (P. 10).
  • Page 31 For the STX, ETX and BCC, refer to 3.1 Polling (P. 18). 1. Identifier (2 digits) The identifier specifies the type of data that is requested from the AG500, such as set value. For details, refer to 5. COMMUNICATION DATA LIST (P. 42).
  • Page 32 An acknowledgment ACK is sent by the AG500 when data received is correct. When the host computer receives ACK from the AG500, the host computer will send any remaining data. If there is no more data to be sent to the AG500, the host computer sends EOT to terminate the data link.
  • Page 33: Selecting Procedure Example (When The Host Computer Sends The Set Values)

    3. RKC COMMUNICATION PROTOCOL 3.2.2 Selecting procedure example (When the host computer sends the set values)  Normal transmission Host computer send Address Identifier Data AG500 send To *1 Host computer send Host computer send Identifier Data AG500 send  Error transmission...
  • Page 34: Modbus Communication Protocol

    MODBUS COMMUNICATION PROTOCOL The master controls communication between master and slave. A typical message consists of a request (query message) sent from the master followed by an answer (response message) from the slave. When master begins data transmission, a set of data is sent to the slave in a fixed sequence. When it is received, the slave decodes it, takes the necessary action, and returns data to the master.
  • Page 35: Function Code

    4. MODBUS COMMUNICATION PROTOCOL 4.2 Function Code Function code contents Function code Function Contents (Hexadecimal) Read holding registers Measured value (PV), Alarm status monitor, etc. Preset single register Alarm set value, PV bias, etc. Diagnostics (loopback test) Loopback test Alarm set value, PV bias, etc. Preset multiple registers Message length of each function (Unit: byte) Function code...
  • Page 36: Slave Responses

    4. MODBUS COMMUNICATION PROTOCOL 4.4 Slave Responses (1) Normal response  In the response message of the Read Holding Registers, the slave returns the read out data and the number of data items with the same slave address and function code as the query message. ...
  • Page 37: Calculating Crc-16

    4. MODBUS COMMUNICATION PROTOCOL 4.5 Calculating CRC-16 The Cyclic Redundancy Check (CRC) is a 2 byte (16-bit) error check code. After constructing the data message, not including start, stop, or parity bit, the master calculates a CRC code and appends this to the end of the message.
  • Page 38: The Flow Chart Of Crc-16

    4. MODBUS COMMUNICATION PROTOCOL  The flow chart of CRC-16 START FFFFH  CRC Register CRC Register  next byte of the message  CRC Register 0  n Shift CRC Register right 1 bit Carry flag is 1 CRC Register  A001H  CRC Register n + 1 ...
  • Page 39: Example Of A Crc Calculation In The 'C' Language

    4. MODBUS COMMUNICATION PROTOCOL  Example of a CRC calculation in the ‘C’ language This routine assumes that the data types ‘uint16’ and ‘uint8’ exists. Theses are unsigned 16-bit integer (usually an ‘unsigned short int’ for most compiler types) and unsigned 8-bit integer (unsigned char). ‘z_p’...
  • Page 40: Register Read And Write

    4. MODBUS COMMUNICATION PROTOCOL 4.6 Register Read and Write 4.6.1 Read holding registers [03H] The query message specifies the starting register address and quantity of registers to be read. The contents of the holding registers are entered in the response message as data, divided into two parts: the high-order 8-bit and the low-order 8-bit, arranged in the order of the register numbers.
  • Page 41: Preset Single Register [06H]

    4. MODBUS COMMUNICATION PROTOCOL 4.6.2 Preset single register [06H] The query message specifies data to be written into the designated holding register. The write data is arranged in the query message with high-order 8-bit first and low-order 8-bit next. Only R/W holding registers can be specified.
  • Page 42: Diagnostics (Loopback Test) [08H]

    4. MODBUS COMMUNICATION PROTOCOL 4.6.3 Diagnostics (Loopback test) [08H] The master’s query message will be returned as the response message from the slave. This function checks the communication system between the master and slave (the controller). Example: Loopback test for slave address 1 Query message Slave address Function code...
  • Page 43: Preset Multiple Registers [10H]

    4. MODBUS COMMUNICATION PROTOCOL 4.6.4 Preset multiple registers [10H] The query message specifies the starting register address and quantity of registers to be written. The write data is arranged in the query message with high-order 8-bit first and low-order 8-bit next. Only R/W holding registers can be specified.
  • Page 44: Caution For Handling Communication Data

    4. MODBUS COMMUNICATION PROTOCOL 4.7 Caution for Handling Communication Data  The numeric range of data used in Modbus protocol is 0000H to FFFFH. Only the set value within the setting range is effective. FFFFH represents 1.  The Modbus protocol does not recognize data with decimal points during communication. Example: When Measured value (PV) is 5.0 %, 5.0 is processed as 50, 50 = 0032H...
  • Page 45: How To Use Modbus Data Mapping

    4. MODBUS COMMUNICATION PROTOCOL 4.8 How to Use Modbus Data Mapping In this communication, it is possible to continuously read/write data by freely specifying 16 sets of data. Register address to specify mapping data: 1000H to 100FH Register address to actually read/write data: 1500H to 150FH Register address of data which can be mapped: Refer to 5.2 Communication Data List (P.
  • Page 46: Modbus Data Mapping Address

    4. MODBUS COMMUNICATION PROTOCOL 4.9 Modbus Data Mapping Address  Register address for data mapping Modbus register Attri- Factory Name Data range address bute set value HEX DEC 1 1 Register address setting 1 1000 4096 RW Decimal: 1 to 4095 (1: No mapping) Read/write address: 1500H 1 Hexadecimal:...
  • Page 47: Register Address For Data Read/Writes

    4. MODBUS COMMUNICATION PROTOCOL  Register address for data read/writes Modbus register Attri- Factory Name Data range address bute set value HEX DEC 1 Data specified by register 1500 5376 address setting 1 (1000H) 2 Data specified by register 1501 5377 address setting 2 (1001H) 3 Data specified by register 1502 5378...
  • Page 48: Communication Data List

    A method of how communication data items are read or written when viewed from the host computer is described RO: Read only data Data direction Host computer AG500 R/W: Read and Write data Data direction Host computer AG500 (5) Data range: Read or write range of communication data ...
  • Page 49  RKC communication Polling: The AG500 makes a timeout judgment after about 3 seconds, sends EOT, and ends the data link. Selecting: The AG500 sends a negative acknowledgment NAK to the host computer. Corrections, such as re-send, must be made at the host computer.
  • Page 50: Communication Data List (Rkc Communication/Modbus)

    5. COMMUNICATION DATA LIST 5.2 Communication Data List (RKC communication/Modbus) Modbus register Attri- Factory set Name Iden- Data range address bute value tifier    Model code Model character code (32-digit)    ROM version monitor Version of ROM built in the instrument (9-digit) ...
  • Page 51 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier  14 Digital input (DI) state 00EB RKC communication monitor Least significant digit: The state of hold reset (DI1) 2nd digit: The state of Interlock release (DI2) 3rd digit to Most significant digit: Unused...
  • Page 52 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier  Unused     00EF · · · · · · 00F1 18 Hold reset 00F2 R/W 0: Hold reset execution 1: Hold state When “0”...
  • Page 53 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier Based on model 26 Input type 00FA R/W 0 to 26 code. Refer to Input type number table. When not specifying: 0  Unused ...
  • Page 54 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier R/W 0: C 27 Display unit 00FC 1: F Based on model 28 Input decimal point 00FD R/W 0: No decimal place code. position 1: One decimal place 2: Two decimal places...
  • Page 55 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier 32 PV digital filter 0102 R/W 0.0 to 100.0 seconds (0.0: Unused) 33 PV ratio 0103 R/W 0.500 to 1.500 1.000 34 PV low input cut-off 0104 R/W 0.00 to 25.00 % of input span 0.00...
  • Page 56 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier R/W Input scale low  (5 % of input span) TC/RTD inputs: 37 Input error determination 0108 to Input scale high  (5 % of input Input scale high point (high) ...
  • Page 57 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier 47 Alarm 1 differential gap 0115 R/W 0 to Input span Varies with the setting of the Input decimal point position. 48 Alarm 1 delay timer 0116 R/W 0.0 to 600.0 seconds 49 Alarm 1 action at...
  • Page 58 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier 61 Alarm 3 differential gap 0123 R/W 0 to Input span Varies with the setting of the Input decimal point position. 62 Alarm 3 delay timer 0124 R/W 0.0 to 600.0 seconds 63 Alarm 3 action at...
  • Page 59 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier 75 Alarm 5 differential gap 0131 R/W 0 to Input span Varies with the setting of the Input decimal point position. 76 Alarm 5 delay timer 0132 R/W 0.0 to 600.0 seconds 77 Alarm 5 action at...
  • Page 60: Range Code Table

    5. COMMUNICATION DATA LIST  Range code table  Thermocouple (TC) input, RTD input Type Code Range Type Code Range 200.0 to 400.0 C 328.0 to 1292.0 F 200.0 to 800.0 C 328 to 1832 F 200 to 1372 C 50 to 1768 C 0.0 to 400.0 C 58 to 3214 F...
  • Page 61: The Communication Data Which Will Be Initialized Or Changed, If The Communication Data Are Changed

    5. COMMUNICATION DATA LIST 5.3 The communication data which will be initialized or changed, if the communication data are changed Before changing any communication data setting, always record all communication data settings. And after the change, always check all communication data settings by comparing them with the record taken before the change.
  • Page 62: The Communication Data Which Will Be Initialized If The Display Unit Is Changed

    5. COMMUNICATION DATA LIST  The communication data which will be initialized if the Display unit is changed  When Display unit (RKC communication: PU, Modbus: 00FCH) is changed The following communication data will be changed to factory default values according to the new setting. Name Factory set value Input decimal point position...
  • Page 63: The Communication Data Which Will Be Initialized If The Alarm Type Is Changed

    5. COMMUNICATION DATA LIST  The communication data which will be initialized if the Alarm type is changed  When Alarm 1 type (RKC communication: XA, Modbus: 0111H) is changed The following communication data will be changed to factory default values according to the new setting. Name Factory set value Alarm 1 set value...
  • Page 64 5. COMMUNICATION DATA LIST  When Alarm 4 type (RKC communication: XD, Modbus: 0126H) is changed The following communication data will be changed to factory default values according to the new setting. Name Factory set value Alarm 4 set value Varies with the setting of the Input decimal point position.
  • Page 65: The Communication Data Which Will Be Automatically Converted If The Input Decimal Point Position Is Changed

    5. COMMUNICATION DATA LIST  The communication data which will be automatically converted if the Input decimal point position is changed The following parameters will automatically converted when changing Input decimal point position (RKC communication: XU, Modbus: 00FDH). Name Measured value (PV) Peak hold monitor Bottom hold monitor Input scale high...
  • Page 66: Troubleshooting

    The communication settings (device address, After all communication parameters are set, communication speed, data bit configuration, the AG500 power is turned on again after etc.) were not enabled after being changed. turning it off once. Error in the data format...
  • Page 67: Modbus

    The communication settings (device address, After all communication parameters are set, communication speed, data bit configuration, the AG500 power is turned on again after etc.) were not enabled after being changed. turning it off once. A transmission error (overrun error, framing...
  • Page 68: Ascii 7-Bit Code Table

    7. ASCII 7-BIT CODE TABLE This table is only for use with RKC communication. b5 to b7 b4 b3 b2 b1 ‘ ” & ’ < ¥ > ˜ IMR02F09-E1...
  • Page 69 The first edition: JUN. 2014 [IMQ00]...
  • Page 70 RKC INSTRUMENT INC. HEADQUARTERS: 16-6, KUGAHARA 5-CHOME, OHTA-KU TOKYO 146-8515 JAPAN PHONE: 03-3751-9799 (+81 3 3751 9799) FAX: 03-3751-8585 (+81 3 3751 8585) E-mail: info@rkcinst.co.jp Website: http://www.rkcinst.com/ IMR02F09-E1 JUN. 2014...

Table of Contents