12.07.2015 Views

Installation/startup instruction (English) - PNet - Trend

Installation/startup instruction (English) - PNet - Trend

Installation/startup instruction (English) - PNet - Trend

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configure the IQ3/XNC MODBUS Driver6.4.1 Specifying the Data Request Code (continued)device This is a 3 digit number that specifies the address of the device containing the required data. If the address isless than 3 characters it must be padded with leading zeros as required e.g. if the address is ‘3’ you must enter ‘003’.function This is a 2 digit code that specifies the MODBUS function that is to be used to send data to or retrieve datafrom the device. You must enter 2 digits e.g. ‘03’. The driver supports the following MODBUS functions.MODBUS FunctionDescription01 Multiple-bit read (Read Coil). If used format must be set to ‘00’.02 Multiple-bit read (Read Discrete Input)03 Multiple-word read (Read Holding Registers)04 Multiple-word read (Read Input Registers)05 Bit write (Write Single Coil). If used format must be set to ‘00’, and no of values must beset to ‘01’.06 Word write (Write Single Holding Register). If used no of values must be set to ‘01’.16 Write Multiple Holding Registersaddress This is a 5 digit number that specifies the MODBUS address of the first required value in the device. It mustbe the decimal value not the hexadecimal value. If it is less than 5 digits it must be padded with leading zeros e.g. 512must be entered as 00512. You should reference the documentation supplied with the MODBUS device for details ofwhat information is stored in what register or address. However the way each manufacturer refers to this informationis different. It may be presented as a register number or address and the address may be in decimal or hex. If theinformation is presented as a MODBUS address in decimal then the value can be used as specified. However ifpresented as a register number then you should follow the following rule to calculate the address:For example:▪▪If the value is greater than 9999 then take off the first digit e.g. 40513 becomes 0513.▪▪Subtract 1.Manufacturer’s Documentation Address Value to enter40513 512 0051210001 0 0000030123 122 0012200001 0 00000If the address is in hexadecimal it must be converted to decimal before used. It is suggested that this is done using acalculator with the facility to convert hexadecimal values to decimal. Some examples are shown in the table below.Manufacturer’s Documentation Address Value to enter0x301 or 301H 769 007690x1012 or 1012H 4114 041140x33B or 33BH 827 00827no of values This is a 2 digit number that specifies the number of values that are to be accessed. The driver will startwith the value specified by address and then access the next X values where X is specified by no of values. If theC09 format is used this value must be set to ‘01’. If the number of values is less than 2 digits it must be padded withleading zeros as required e.g. if the number of values is ‘1’ you must enter ‘01’.start output/input This is a 3 digit number that specifies first output/input in the TCL module to obtain informationfrom, or to put information in. The driver will start with the output/input specified by and use subsequent inputs/outputs as necessary depending on the amount of data read i.e. no of values. If the numberis less than 2 digits it must be padded with leading zeros as required e.g. if the number is ‘001’ you must enter ‘01’.error output This is an optional 3 digit parameter that specifies the output in the IQ3/XNC’s TCL module thatthe communication status is written to. 0=OK, and 1=error. The driver sets a communication error flag if a validresponse to a read request is not received within (Timeout * RetryNumber) and the maximum number of retries isreached. Therefore communication error handling is only effective for read requests (MODBUS functions 01, 02, 03or 04). One communication detection per MODBUS device is sufficient. It is recommended that the error output isused so that an alarm can be generated by the strategy if a communications error occurs and appropriate action taken.IQ3/XNC MODBUS Driver Manual TE201101 Issue 2, 12-Apr-201125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!