RKC INSTRUMENT PG500 Communication Instruction Manual

RKC INSTRUMENT PG500 Communication Instruction Manual

Pressure indicator
Table of Contents

Advertisement

Quick Links

Pressure Indicator
PG500
Communication
Instruction Manual
IMR02F04-E1
RKC INSTRUMENT INC.
®

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for RKC INSTRUMENT PG500

  • Page 1 Pressure Indicator PG500 Communication Instruction Manual IMR02F04-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 PG500 ..............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.2 Function Code ....................29 4.3 Communication Mode ..................29 4.4 Slave Responses ................... 30 4.5 Calculating CRC-16 ..................31  The flow chart of CRC-16 .................... 32  Example of a CRC calculation in the 'C' language ............33 4.6 Register Read and Write ................
  • Page 7: Outline

    1. OUTLINE  RKC communication and Modbus The communication function makes it possible to monitor and set the data of the Pressure Indicator PG500 from a computer. The PG500 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 PG500  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 PG500 (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 PG500. Host computer (Master) Connect to USB port USB cable (COM-K accessory) Paired wire RS-485 PG500 (Slave) ()
  • Page 13: Connection To The Rs-422A Port Of

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

    (Recommended type: TM12RV-64-H manufactured by HIROSE ELECTRIC CO., LTD.) when connector of host computer is D-SUB 25-pin. Host computer (Master) D-SUB 9-pin connector * W-BF-28 RS-232C PG500 (Slave) RS-232C/RS-422A converter COM-A (RKC product) RS-422A () Blue T (A) T(A)
  • 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 PG500. Host computer (Master) Connect to USB port USB cable Paired wire (COM-K accessory) RS-422A PG500 (Slave) ()
  • Page 16: Setting

    2.3 Setting To establish communication parameters between host computer (master) and PG500 (slave), it is necessary to set the following parameters on each PG500 (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 2.4: 2400 bps for both the PG500 (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 PG500 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 PG500. 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. Set the Device address. speed. Press the key several times at input type Setting range: 1.2: 1200 bps until device address is displayed. 2.4: 2400 bps 4.8: 4800 bps Input type Device address 9.6: 9600 bps...
  • Page 21 2. HOST COMMUNICATION  10. Set the Interval time. 12. 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

    PG500 to send data: - Response wait time after PG500 sends BCC in polling procedure - Response wait time after PG500 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 PG500 receives BCC + Interval time b: Response wait time after the PG500 sends ACK or Response wait time after the PG500 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 PG500).  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 PG500 responds according to queries and commands from the host.
  • Page 25: Polling Procedures

    The device address specifies the PG500 to be polled and each PG500 must have its own unique device address. This data is a device address of the PG500 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 PG500 The PG500 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 PG500 receives ACK from the host computer, the PG500 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)

    3. RKC COMMUNICATION PROTOCOL 3.1.2 Polling procedure example (When the host computer requests data)  Normal transmission (1) When the measured value (PV) monitor (identifier: M1) is polled Host computer send Host computer send Address Identifier Identifier Data Controller send (2) Polling the next identifier with ACK (acknowledgment) after polling ends Host computer send Host computer send...
  • Page 29: Error Transmission

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

    Host computer sends selecting address for the selecting sequence.  Address (2 digits) This data is a device address of the PG500 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 PG500, such as set value. For details, refer to 5. COMMUNICATION DATA LIST (P. 42).
  • Page 32 An acknowledgment ACK is sent by the PG500 when data received is correct. When the host computer receives ACK from the PG500, the host computer will send any remaining data. If there is no more data to be sent to the PG500, 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 Controller send To *1 Host computer send Host computer send Identifier Data Controller send  Error transmission Error data Host computer send Address...
  • 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 MPa, 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 PG500 R/W: Read and Write data Data direction Host computer PG500 (5) Data range: Read or write range of communication data ...
  • Page 49  RKC communication Polling: The PG500 makes a timeout judgment after about 3 seconds, sends EOT, and ends the data link. Selecting: The PG500 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 auto zero (DI1) 2nd digit: The state of hold reset (DI2) 3rd digit: The state of Interlock release (DI3)
  • Page 52 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier 17 Auto zero 00F0 R/W 0: Normal state 1: Auto zero execution When “1” is written, auto zero starts. When done, the value reverts to “0.” 3: Error When “0”...
  • Page 53 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier Based on model 25 Input type 00FA R/W 0 to 4 code. Refer to Input type and factory set value table. Refer to 26 Gain setting 00FB R/W 0.500 to 4.000 mV/V or...
  • Page 54 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier 31 Linearizing type 0100 R/W 0 to 20 The setting value varies depending on using pressure sensor. The setting value varies depending on using pressure sensor. When using our CZ-100P or CZ-200P: Refer to Gain setting and...
  • Page 55 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier 35 Set lock level 0105 R/W RKC communication Least significant digit: Items other than alarm set value. 2nd digit: Alarm set value 3rd digit to Most significant digit: Unused Data 0: Unlock...
  • Page 56 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier 2 R/W Pressure display low  39 Input error determination 0109 point (low) (5 % of input span) to Pressure display high  (5 % of input span) Varies with the setting of the Input decimal point position.
  • Page 57 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier Based on model 46 Alarm 1 type 0111 R/W 0: None code. 1: Process high 2: Process low When not specifying: 1 Based on model 47 Alarm 1 hold action 0112 R/W 0: OFF...
  • Page 58 5. COMMUNICATION DATA LIST Modbus register Attri- Factory set Name Iden- Data range address bute value tifier Based on model 61 Alarm 3 hold action 0120 R/W 0: OFF code. 1: Hold action ON When not specifying: 0 62 Alarm 3 interlock 0121 R/W 0: Unused (OFF) 1: Used...
  • Page 59: Gain Setting And Linearizing Type (Only Our Pressure Sensor Cz-100P/Cz-200P)

    LI, Modbus S: 0100H) by DATE 03E2420 0305 refer to the linearizing type symbol table.  Set the “1.” RKC INSTRUMENT INC. TOKYO Rated output value Set it to Gain setting (RKC communication: GA, Modbus: 00FBH).  Set the “1.234.” Linearizing type symbol table...
  • Page 60: 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 61: 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 62: 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 63: The Communication Data Which Will Be Automatically Converted If The Input Decimal Point Position Is Changed

    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 64: The Communication Data Which Will Be Automatically Converted If The Pressure Display High/Low Are Changed

    5. COMMUNICATION DATA LIST  The communication data which will be automatically converted if the Pressure display high/low are changed When the data of Pressure display high (RKC communication: XV, Modbus: 00FEH) or the data of Pressure display low (RKC communication: XW, Modbus: 00FFH) is attempted to set outside of the setting range, these values (high or low) will be set to the Pressure display high (or Pressure display low).
  • Page 65: Troubleshooting

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

    The communication settings (device address, After all communication parameters are set, communication speed, data bit configuration, the PG500 power is turned on again after etc.) were not enabled after being changed. turning it off once. A transmission error (overrun error, framing...
  • Page 67: 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 ‘ ” & ’ < ¥ > ˜ IMR02F04-E1...
  • Page 68 MEMO IMR02F04-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/ IMR02F04-E1 JUN. 2014...

Table of Contents