Page 1
Paperless Recorder VGR-B100 Communication Function Operation Manual WXPVM70mnAR002E RKC INSTRUMENT INC. March, 2018(Rev.7) ®...
Page 2
RKC is not responsible if this instrument is repaired, modified or disassembled by other than factory-approved personnel. Malfunction can occur and warranty is void under these conditions. All Rights Reserved, Copyright 2009-2018, RKC INSTRUMENT INC. - i -...
Page 3
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.
FOR PROPER DISPOSAL When disposing of each part used for this instrument, always follows the procedure for disposing of industrial wastes stipulated by the respective local community. SYMBOLS USED ON THE INSTRUMENT The symbols below are used on this instrument for the cautioning information. This shows “Caution for handling”.
Page 5
<CONTENTS> 1. Introduction ....................1-1 About communication protocols ......................1-1 Outline of Ethernet communication functions ..................1-1 RS-485 (option) ............................. 1-1 Preparation ............................1-1 Modbus RTU protocol ........................... 1-2 Modbus TCP protocol ........................... 1-2 Addition of new items and map version ....................1-2 Types of communication connection structures ..................
1. Introduction 1.1 About communication protocols This device has Modbus protocols. The Modbus protocols are communication protocols developed by Modicon Inc. (AEG Schneider Automation International S.A.S) for PLC, which are described in the document of protocol specifications (PI-MBUS-300 Rev.J). For the Modbus protocol specifications, see the document. This document contains the Modbus protocols' function codes and data content, which can be mainly used for this device.
1.5 Modbus RTU protocol Items Specifications Transfer mode Communication speed 9600,19200,38400 bit/sec Parity None/Even/Odd Data length 8 bits Stop bit 1 bit/2 bits Slave address 1 to 247 ("0" must not be set) Interface RS-485 1.6 Modbus TCP protocol The communication through Ethernet is available. The protocol is Modbus TCP. 1.7 Addition of new items and map version Due to the version upgrade of the main unit, the content of the Modbus map may be changed.
Page 8
1.8 Types of communication connection structures The communication functions of this device allow communications with various devices. 1) Ethernet connection Connect with this device via Ethernet. Real time monitoring for the measurement values (*1), acquisition of the measured files (*2), Web access, clock synchronization or other operations using the attached software are supported.
Page 9
(*) Version 1.60 or later 2) RS-485 connection (Slave) Connect with this device via RS-485. Through the connection with this device from devices such as PLC or PC, measurement value acquisition, starting of recording, or other operations can be carried out. In this case, only one master device can be used. Up to 48 units of this device can be connected as slave devices.
Page 10
3) RS-485 connection (Master: remote AI) (Version 1.50 or later) Use RS-485 to connect the separately-sold "ZE7400A remote AI unit" or this device as a slave. With one unit of this device as a master, up to six units of ZE7400A or this device can be connected under it.
Page 11
4) RS-485 connection (Master: general-purpose connection) (Version 1.60 or later) With RS-485, data can be obtained and recorded from the ModbusRTU-supported general-purpose devices. With this device as the master, a maximum of 12 supported devices can be connected under it. The data to be obtained are specified individually on this device side. The data obtained can be assigned to the calculating channels of the main unit.
2. Read and write of data Communication Protocol (Modbus TCP or Modbus RTU) This product supports two types of Modbus protocols: Modbus TCP protocol that works on Ethernet and Modbus RTU that works on RS-485. Shown below are the differences between these two protocols. The function code and data sections are the same, but there are differences in the header and error check sections.
2.3 Error Response In accordance with the communication protocol for the pertinent function code, if an error occurs during command transmission, an error response is returned in the fixed format described in this section ■ Example of slave response (function code = 06H, command error = 10H) Data length Component Data...
Page 14
2.4 Reading of input register area It is an area only for reading. The starting address of the read data (relative address) and the number of data (Every one word = two bytes) are specified. Function code: 04H ■ Example of transmitting master(starting address=0032H, data length=2words) Data length Component Data...
Page 15
【Input register area map】Function code: 04H Relative Address address Item Array Content Remarks (HEX) 30001 Production number ASCII 30002 Production number ASCII 30003 Production number ASCII 30004 Production number ASCII 30005 Production number ASCII 30006 Production number ASCII 30007 Production number ASCII 30008 Production number...
Page 16
Relative Address address Item Array Content Remarks (HEX) 30050 Reserve 0~99 30051 Year 1~12 30052 Month 1~31 30053 0~24 30054 Hour 0~59 30055 Minute 0~59 30056 Second State of internal memory Unit: % (one digit after the decimal 0~1000 30057 remainder point) 30058...
Page 19
Relative Address address Item Array Content Remarks (HEX) 30201 State of channel CH01 Bit watch (Details are the following) 30202 State of channel CH02 00bit: Alarm1 1= generation 0= release 30203 State of channel CH03 01bit: Alarm1 1= generation 0= release 30204 State of channel CH04...
Page 21
Relative Address address Item Array Content Remarks (HEX) 30301 Decimal point position CH01 0~4 30302 Decimal point position CH02 0~4 30303 Decimal point position CH03 0~4 30304 Decimal point position CH04 0~4 30305 Decimal point position CH05 0~4 30306 Decimal point position CH06 0~4 0~4...
Page 27
2.5 Read and write of holding register area It is an area for reading and writing. The starting address of the read data (relative address) and the number of data (Every one word = two bytes) are specified. Refer item 2.6 ”Other setting range” for item of “ ”.
Page 28
Function code (Writing): 06H ■ Example of transmitting master(starting address=00C8H, data =5) Data length Component Data MBAP header (only for Modbus TCP) Slave address Function code Relative start address (high-order) Relative start address (low-order) Data Write data (high-order) Write data (low-order) Error check CRC (16 bits) Total number of bytes...
Page 29
Function code (continuous writes): 10H * It is used only when registering production information. ■ Example of master transmission (with a start address of 1b58H and a data count of 20) Data length Component Data MBAP header (only for Modbus TCP) Slave address Function code Relative start address (high-order)
Page 30
【Holding register area map】Function code: 03H, 06H Relative Address address Item Array Content Remarks (HEX) Communication channel -32000~32000 40001 1-value of input 0-01 -32000~32000 40002 2-value of input 0-02 -32000~32000 40003 3-value of input 0-03 -32000~32000 40004 4-value of input 0-04 -32000~32000 40005...
Page 31
Relative Address address Item Array Content Remarks (HEX) 0~4 40048 12-position of decimal point 0-12 0~4 40049 13-position of decimal point 0-13 0~4 40050 14-position of decimal point 0-14 0~4 40051 15-position of decimal point 0-15 0~4 40052 16-position of decimal point 0-16 0~4 40053...
Page 32
Relative Address address Item Array Content Remarks (HEX) 40099 Reserve 40100 Reserve AA01:start Invalid except the left AA00:stop 40101 Record start/stop "DI" is selected when invalid. AA01:Start Invalid except the left AA00:Stop 40102 Sub record start/stop When assigned to the Func key. Invalid except the left AA01:ON 40103...
Page 35
Relative Address address Item Array Content Remarks (HEX) 40246 Scale generation CH01 Now unused The position is the decimal point -32000~32000 40247 Scaling range (L) changeable. The position is the decimal point -32000~32000 40248 Scaling range (H) changeable. 40249 Scaling file (01/16) ASCII Now unused 40250...
Page 38
Relative Address address Item Array Content Remarks (HEX) Zero digit at decimal point position 0~3600(sec) 41479 Delay fixation. 0~99(sec) 41480 Input filter 0:OFF 1:Max/Min 0~3 41481 Record type 2:Average 3:Instant value The position is the decimal point 41482 Offset -32000~32000 changeable.
Page 44
Relative Address address Item Array Content Remarks (HEX) 46401 1900 FTP user User 10 46441 1928 FTP user User 11 46481 1950 FTP user User 12 46521 1978 FTP user User 13 46561 19A0 FTP user User 14 The same composition as User01 46601 19C8 FTP user...
Page 46
2.6 Other setting range The setting range for each item in the case of the holding register writing is explained. 1 Input type, Measurement range ※ Data No. Input type Measurement range ※ DC voltage ±10mV (-10.00 to 10.00) 0-20mv (0.00 to 20.00) 0-50mV (0.00 to 50.00)
Page 47
2 Display color ※ Data No. Display color Data No. Display color Navy Green Fuchsia Blue Teal Purple Olive Yellow Gray Aqua Khaki Maroon Brown Lime Orange 3 Display channel ※ The setting range of display channels(01/12) (12/12)(Following “Channel address”:Relative ~...
Page 48
4 Record cycle ※ Data No. Record cycle 100ms (Sub record only) 1sec 2sec 3sec 5sec 10sec 15sec 20sec 30sec 1min 2min 3min 5min 10min 15min 20min 30min 60min 5 File record cycle ※ The "File record cycle" depends on the "Record cycle". Data No.
Page 49
8 Time zone (UTC) ※ Data No. Time zone (UTC) Data No. Time zone (UTC) -12:00 +04:00 -11:00 +05:00 -10:00 +06:00 -09:00 +07:00 -08:00 +08:00 -07:00 +09:00 -06:00 +10:00 -05:00 +11:00 -04:00 +12:00 -03:00 +13:00 -02:00 +14:00 -01:00 +04:30 +00:00 +05:45 +01:00 +05:30...
Page 50
10 Parameter save (Recorder → SD) ※ The current parameter and system state is saved to an SD card. The result of save of parameter can get by reading the same address "006F". (Status response value) (A file name is "modprm.dps" fixation. Keep the file of a same name from existing on an SD card. Moreover, it becomes an error if a file already exists.
Page 51
3. Modbus master function Overview This is the function for obtaining data from a general-purpose device supporting ModbusRTU such as ModbusRTU-supported controller, ModbusRTU-supported sensor and recording the data on this device. With this device as the master, a maximum of 12 supported devices can be connected under it.
Page 52
【Master connection image view】 Register type Slave ID Com. ID01 Number of data Address Com. ID02 Hold register Input register Register type Hold Com. ID03 Adr. Data Adr. Data Data format INT16 Com. ID04 0000 PV 0000 ・ DP position Com.
Page 53
Procedure of the recording data from slave devices This section describes the procedures from connecting to slave devices until displaying screens and recording data, using the Modbus master function of this device. Note that some of the procedures can be done only using the parameter loader. Main Item Description...
Page 54
Main Item Description Slave Loader Remarks unit Check the status of communications. See section 3.7. Check the status of communications with slave devices. Assign to calculating channels Only the loader. Assign the data acquired to the corresponding For details about the screen, channels, using the calculating formulas of the see section 3.8.
Page 55
Enabling the Modbus master function [Caution] To use this device, the version number of the main unit needs to be 1.60 or later. For details about how to check the version number and operate the main unit, refer to the operation manual of the main unit (WXPVM70mnAR001E).
Page 56
[Parameter loader] On the menu bar, select View > Engineering to open the remote AI ON/OFF screen. * Input "REMOTE" as the password for Engineering. (The Modbus master is also enabled by making the same setting.) (2) Remote AI ON/OFF (2) Remote AI/Modbus master ON/OFF Set ON/OFF for the remote AI/Modbus master functions.
Page 57
Setting Modbus1 (RS485 communication setting, timeout, etc.) [Description] Set the Modbus station number, reception timeout function, parity, stop bit and communication speed. Note) No settings can be changed during the recording process. [Operation] On the system setting screen, select Comm. key > Modbus1 key to open the Modbus1 setting screen.
Page 58
Setting Modbus2 (communication type) [Description] Set the Modbus communication type and master/slave operations. The setting items vary depending on the communication types and master/slave settings. For details about the master functions, see the COMMUNICATION FUNCTION OPERATION MANUAL. Note) No settings can be changed during the recording process. [Operation] On the system setting screen, select Comm.
Page 59
(1) Selection of Modbus operation Select the Modbus operation. Modbus TCP (Ethernet): Modbus TCP is used for communication protocols. Only the slave can be selected for the operation. Modbus TCP+RTU: Add RS-485 to the available communication protocols. (Enabled only if the RS-485 option is implemented) For this setting, additionally set the operation on the ModbusRTU side.
Page 60
Setting the Modbus master [Description] With this device as the Modbus master, carry out the settings of the device to be connected with the general-purpose Modbus slave. This is used when the communication type in section 3.5 is master (general). For details about the Modbus master specifications, see the COMMUNICATION FUNCTION OPERATION MANUAL.
Page 61
(4) Selection of data format Select how the acquired data is handled. INT16: Acquired as a signed 2-byte data (-32768 to 32767). UINT16: Acquired as an unsigned 2-byte data (0 to 65535). INT32 (BIG): Acquired as a signed 4-byte data (-2147483648 to 2147483647). The data is recognized as a big endian.
Page 62
Checking the communication status of the Modbus master [Description] Check the communication status between the Modbus master and slave devices, and retry the connection if a communication error occurs. [Operation] Select the ModbusMas. key on the menu screen to open the screen indicating the communication status of the Modbus master.
Page 63
【Error log to Ethernet log】 Message Parameter Description ・This error occurs when three times consecutive ommunication ID XX:C times the situation where data can not be Receive timeout CID:XX 01~12 received after the time set by reception timeout after sending data from the master. ・This error occurs when the following error occurs three times consecutively on the data received from the device.
Page 64
Setting of calculating channels [Description] By assigning the data acquired from slave devices to the calculating channels "CH13" to "CH48" on the master side, trend display and recording of the data can be carried out on this device. * The setting of calculating channels can be done only from the parameter loader. * For details about other setting items concerning the calculating channels, see the PARAMETER LOADER INSTRUCTION MANUAL (WXPVM70mnAR102E).
Need help?
Do you have a question about the VGR-B100 and is the answer not in the manual?
Questions and answers