background image

ICP DAS, ZT-257x DIO Data Concentrator Quick Start Guide, v1.0

   Page 41

 

 

Copyright ©  2016, by ICP DAS Co., LTD. All Rights Reserved

 

5.3.2.

 

02 (0x02) Read Discrete Inputs 

This function code is used to read the current status of the Digital Input channels on 

the ZT-257x module. 

 

Request

 

Byte  Description 

Length  Value 

00 

Address 

0x01 to 0xF7 (1 to 247) 

01 

Function Code 

0x02 

02-03 

Starting Channel 
Number or Address 
Mapping 

DI

 

(Temporary Input)  0x0000 to 0x0117 

04-05 

Output Channel 
Number or Bit Count 

0x0001 to 0x0118

 (

Bit Count) 

 
 

Response 

Byte  Description 

Length  Value 

00 

Address 

0x01 to 0xF7 (1 to 247) 

01 

Function Code 

0x02 

02 

Byte Count 

The Byte Count of the Response   
[B = (Bit Count + 7)/8] 

03 

Bit Values 

(Bit Values) 

 
 

Error Response 

Byte  Description 

Length  Value 

00 

Address 

0x01 to 0xF7 (1 to 247) 

01 

Function Code 

0x82 

02 

Exception Code 

Refer to the Modbus standard for more details 

 

Содержание ZT-257 Series

Страница 1: ...his user manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2016 by ICP DAS All rights are reserved Trademark Names are used for identification purposes only and may b...

Страница 2: ...gs for the ZT 20xx IOG Module 19 3 1 4 Software Settings for the ZT 20xx IOG Module 23 3 2 Configuring the ZT 257x Module 25 4 Technical Support 28 5 Appendix 29 5 1 Advanced functions DIO Channel Offset 29 5 2 Advanced functions Status Detection Schemes in Wireless Environments 33 5 2 1 The Check Router Alive function 33 5 2 2 The Safe Value function 36 5 3 Modbus Register 39 5 3 1 01 0x01 Read C...

Страница 3: ...via the Ethernet RS 232 or RS 485 interface The ZigBee DIO data concentrator function can be used to easily establish communication between a Zigbee wireless network and the Ethernet meaning that the distributed DIO data can be integrated allowing a remote monitoring system to be quickly implemented The ZigBee DIO data concentrator supports a maximum of 280 digital channels and a maximum of 32 ZT ...

Страница 4: ...onform to the ZigBee 2007 ZigBee Pro specifications developed by the ZigBee Alliance for a suite of high level communication protocols using small low power digital radio modules Only one ZigBee Host e g a ZT 2570 module can be used in a single ZigBee network This module is known as the ZigBee Coordinator and is used to manage the network initialization and routing In addition up to 255 ZigBee Sla...

Страница 5: ... updates related to the status of the I O channels In addition ICP DAS also provides a user friendly GUI configuration utility that allows users to perform advanced functions designed to meet the various needs of customized applications More information related to the ZT 20xx IOG series of I O modules ZigBee Coordinator Router can be found at http www icpdas com root product solutions industrial_w...

Страница 6: ...2 2 1 to 5 for more details Specify the method to determine the conditions for how the status of the DIO channels will be updated See Section 2 2 6 to 7 for more details Specify the protection mechanism that should be activated if the ZigBee wireless communication is interrupted See Section 2 2 8 to 9 for more details Note that this function is not essential to be enabled but could be especially u...

Страница 7: ... Switch RF Power Section 2 2 5 Section 3 1 4 Trigger Mode Section 2 2 6 Section 3 1 3 DIP Switch 2 Refresh Interval Section 2 2 7 Section 3 1 4 Check Router Alive Section 2 2 8 Section 3 1 4 Safe Value Section 2 2 9 Section 3 1 4 Channel Offset DI DO Section 2 2 10 Section 3 1 4 Modbus Slave ID Section 2 2 11 N A 1 Pan ID Overview This parameter is used to configure the Pan ID which is the group I...

Страница 8: ... single ZT IOG network must be assigned as the ZigBee Coordinator 0x0000 and must be always powered on or else the IOG system will not function correctly 3 Encryption Overview This parameter is used to switch support for the AES 128 bit encryption algorithm either ON or OFF When using the ZT 20xx IOG module this function can be set using the rotary switch When using the ZT 257x module this functio...

Страница 9: ...om Wi Fi Analyzer below several Wi Fi signals are being used for specific Wi Fi channels i e channels 1 6 and 11 Determining which ZigBee channels do not overlap with the available Wi Fi channels By referring to the corresponding Wi Fi and ZigBee channel table below based on the IEEE802 15 4 standard the ZigBee transmission frequency can be adjusted in the range from 2405 MHz to 2480 MHz separated...

Страница 10: ...257x DIO Data Concentrator Quick Start Guide v1 0 Page 8 Copyright 2016 by ICP DAS Co LTD All Rights Reserved Comparison between RF Channel frequencies and ZigBee 802 15 4 and WLAN IEEE 802 11b IEEE 802 11g bands ...

Страница 11: ...s adjusted nor does ICP DAS assume any liability derived from the illegal adjustment of this parameter 6 Trigger Mode Overview This parameter is used to modify the trigger type and logic for the DIO channels including both the Level and the Pulse trigger modes Refer to the user manual for the ZT 20xx IOG module for more details Select the Level Mode option when using the ZigBee DIO data concentrat...

Страница 12: ... Value Overview This parameter is used to configure the Safe value for a DO channel If a module is disconnected for the specified time the status of the DO channel will be set to the Safe value See Section 5 2 Advanced functions Status Detection Schemes in Wireless Environments for more details This parameter is only applicable to the ZT 2571 Slave ZigBee Router module or when a ZT 20xx IOG series...

Страница 13: ...rview This parameter is used to configure the Modbus Slave ID for a ZT 257x module When using a ZT 257x module as a ZigBee DIO data concentrator the module allows the external host or controller to read data from or write data to the ZT 20xx IOG DIO module using the Modbus protocol Consequently a Modbus ID must be assigned to the ZT 257x module ...

Страница 14: ...e ZT 257x module follow the instructions below Establish a ZigBee connection Configure the ZT 2570 1 and the ZT 20xx IOG INIT Connect to a ZT 20xx IOG Configure the ZT 20xx IOG via the ZT 2570 Configure the ZT 2570 2 and the ZT 20xx IOG RUN Create a connection to the ZT 20xx IOG Establish a ZigBee connection Configure the ZT 2570 first Establish a ZigBee connection Using for the first time Connect...

Страница 15: ...value 3 RF Channel Set via Rotary Switch Set via software Set to the same value The Node ID and RF Channel for the ZT 20xx IOG module are set using either the DIP or the Rotary switch See Section 3 1 3 Hardware Settings for the ZT 20xx IOG Module for details of how to create a ZigBee wireless connection The Pan ID for the ZT 20xx IOG module is set remotely using software and cannot be adjusted usi...

Страница 16: ...70 Factory default ZT 20xx IOG Has the Pan ID been changed Refer to the Default settings in Section 3 1 1 ZT 20xx IOG Set to RUN Refer to the INIT Settings in Section 3 1 2 YES NO Is the Pan ID known YES NO Target setting ZT 20xx IOG Connect to a ZT 20xx IOG Configure the ZT 20xx IOG ZT 20xx IOG Set to RUN ZT 20xx IOG Set to INIT The Pan ID is Unknown The Pan ID is known ...

Страница 17: ...2570 module to the ZBRUN position and then reboot the module Parameter ZT 20xx IOG ZT 2550 ZT 2570 ZT USBC RUN Pan ID ZigBee Group ID User defined Default 0x0000 Set to the same ID as the ZT 20xx IOG Node ID ZigBee Router ZigBee Coordinator Set using DIP switches 4 8 The Node ID can be set a value in the range of 0x0001 to 0x001F see item 4 in Section 3 1 3 Hardware Settings of for the ZT 20xx IOG...

Страница 18: ...the ZT 20xx IOG module Reboot the ZT 20xx IOG module and wait until a connection is established See Section 3 1 4 Software Settings for the ZT 20xx IOG Module for details of how to configure the I O mapping for the ZT 20xx IOG module Example Set the ZT 20xx IOG module to RUN mode i e move DIP switch 1 to the OFF position to remotely connect to the ZT 2570 module The relevant settings are provided ...

Страница 19: ...570 ZT USBC INIT Pan ID ZigBee Group ID 0x3FFF Set to the same ID as the ZT 20xx IOG Node ID ZigBee Router ZigBee Coordinator 0x0020 0x0000 RF Channel Set using the Rotary switch 0 F Set to the same frequency as the ZT 20xx IOG Application Mode Level Mode Transparent Mode N A Data Format N A None 8 1 Baud Rate N A 115200 bps Note that the Pan ID must be the same for all modules that exist in the s...

Страница 20: ...20xx IOG module Example Set the ZT 20xx IOG module to INIT mode i e move DIP switch 1 to the ON position to remotely connect to the ZT 2570 module The relevant settings are provided in the table below ZT 20xx IOG ZT 2570 Config Mode DIP1 ON Pan ID 0x3FFF Application Mode DIP2 OFF Application Mode Transparent Mode Encryption DIP3 OFF Encryption Disabled Node ID DIP4 OFF Node ID 0x0000 ZigBee Coordi...

Страница 21: ...xx IOG Module ZT 20xx IOG modules contain two types of hardware switches depending the model The definitions for the Rotary and DIP switches are illustrated in the diagrams below ZT 2043 IOG ZT 2053 IOG ZT 2055 IOG RF Channel Node ID DIP Switch 4 to 8 Reserved 1 2 3 4 5 6 7 8 9 10 11 12 ON INIT Run Level Pulse Disable AES128 INIT Pulse AES128 ZT 2060 IOG OFF ...

Страница 22: ... configure the advanced settings set DIP switch 1 to the INIT position and then perform the configuration using the software utility Trigger Mode Position Description RUN OFF Communication mode Used to update the I O Pair connection data Pan ID Based on the software settings Default 0x0000 Node ID Based on the DIP switch settings RF Channel Based on the rotary switch settings INIT ON Initializatio...

Страница 23: ...nel is High the state of all DO channels will be set to High If the state of all DI channels is Low the state of all DO channels will be set to Low Pulse ON If the state of any DI channel is triggered on a rising edge rising edge triggered the state of all DO channels will be set to the reverse 1 to 0 or 0 to 1 DIP Switch 3 Encryption DIP Switch 3 is used to specify whether AES 128 bit encryption ...

Страница 24: ...OFF 0x0005 OFF OFF ON OFF ON 0x0015 ON OFF ON OFF ON 0x0006 OFF OFF ON ON OFF 0x0016 ON OFF ON ON OFF 0x0007 OFF OFF ON ON ON 0x0017 ON OFF ON ON ON 0x0008 OFF ON OFF OFF OFF 0x0018 ON ON OFF OFF OFF 0x0009 OFF ON OFF OFF ON 0x0019 ON ON OFF OFF ON 0x000A OFF ON OFF ON OFF 0x001A ON ON OFF ON OFF 0x000B OFF ON OFF ON ON 0x001B ON ON OFF ON ON 0x000C OFF ON ON OFF OFF 0x001C ON ON ON OFF OFF 0x000D...

Страница 25: ...rom http ftp icpdas com tw pub cd usbcd napdos zigbee zt_series utility Execute the ZT 20xx IOG Configuration Utility Use the ZT IOG Configuration Utility to connect to the ZT 20xx IOG module Click the COM Port Settings button and then select the COM port that is being used by the ZT 2570 module Click the Read Settings button to read the current settings that are configured for the ZT 20xx IOG mod...

Страница 26: ...tion 2 2 Basic Configuration for more details Refresh Interval This parameter is used to modify the time interval between I O channel updates in seconds See Section 2 2 Basic Configuration for more details Safe Value This parameter is used to set the Safe values for the Digital Output channels Note that the Check Router Alive function must be enabled before this parameter can be edited Channel Off...

Страница 27: ...centrator complete the configuration by following the procedure described below Before beginning the configurations connect an RS 232 or RS 485 cable between the module and the Host PC as illustrated below RS 232 RS 485 Ensure that the DIP switch indicated in the figure below is in the ZBSET position ZBSET ZBRUN ZBINIT CA 0910N CA 0915 ZT 2570 ZT 2571 Windows Based PC F G D D GND VS RS 485 Gateway...

Страница 28: ... is active and is now in Configuration mode Execute the ZT 20xx IOG Configuration Utility See Section 3 1 4 Software Settings for more details relating to the ZT 20xx IOG Configuration Utility Click the COM Port Settings button and then select the COM port that is being used by the ZT 2570 module Click the Read Settings button to read the current settings that are configured for the ZT 257x module...

Страница 29: ...ing the new value in the New field for the relevant parameter After configuring the parameters click the Write Setting button and wait until the new configuration data is written to the module This may take a few seconds Once the configuration has been completed return the DIP switch to the ZBRUN position to enable Communication Mode Power on the module If the LED indicator is continuously red it ...

Страница 30: ...a description of the problem and include the following information The status and position of the DIP switches and the Rotary switch details of the current configuration for the device and the status of the LEDs on the ZT 257x module The status and position of the DIP switches and the Rotary switch details of the current configuration for the device and the status of the LEDs on the ZT 20xx IOG mo...

Страница 31: ... modules connected to the ZT 257x module via the Ethernet RS 232 or RS 485 interface A maximum of 280 digital channels are available when the ZT 257x module is acting as a DIO data concentrator These channels can be used to temporarily store the status of the DIO channels on a ZT 20xx IOG module via the network However before this function can be used a Channel Offset DI DO must be configured for ...

Страница 32: ...ingle logical channel field i e the Modbus Register they will be treated in the same way as if the I O Pair connection function was being used If a DI channel is not physically wired the channel will be regarded as being unused and so the status of the channel will not be updated It is recommended that the addresses for the DI or DO channels be configured as consecutive addresses so that the exter...

Страница 33: ...ration Utility The following example is based on the ZT 20xx IOG module ZT 2570 ZT 2571 280 CH 8 DI 8 DO ZT 2055 IOG 6 DI 4 DO ZT 2060 IOG 14 DI ZT 2053 IOG 14 DO ZT 2043 IOG DI 0 5 DO 0 3 DI 0 7 DO 0 7 DO 0 13 DI 0 13 CH 0 5 CH 6 9 CH 10 17 CH 18 25 CH 40 53 CH 26 39 DI Offset 0 DO Offset 6 DI Offset 10 DO Offset 18 DI Offset 26 DO Offset N A DI Offset N A DO Offset 40 Alternate addresses ...

Страница 34: ... Section 5 3 Modbus Register for more details Using the ZT 2055 IOG module 8 DI and 8 DO channels as an example a If the Channel Offset DI value is set to 0 The status of DI Channels 0 7 on the ZT 2055 IOG module will be recorded on Channels 0 7 on the ZT 257x module b If the Channel Offset DI value is set to 128 The status of DI Channels 0 7 on the ZT 2055 IOG module will be recorded on Channels ...

Страница 35: ...ed The Check Router Alive function The Safe Value function 5 2 1 The Check Router Alive function The Check Router Alive function provided on the ZigBee Coordinator allows the status of the connection between the ZigBee Router and the ZigBee Coordinator to be automatically detected at a rate of one module per second Details of the connection status will then be sent to an external Host PC or PAC vi...

Страница 36: ...e module via the Modbus RTU or the Modbus TCP protocol See Section 5 3 1 Read Coils for more details Configuring the Check Router Alive Function Before monitoring of the connection status of a remote module can begin the Check Router Alive function must be configured for the specific module To configure the module follow the instructions below Execute the ZT 20xx IOG Configuration Utility See Sect...

Страница 37: ... in seconds A module will be regarded as being disconnected if the timeout value expires and then the Disconnection Alarm Channel will be triggered and the status will be set to High Note Disconnection Alarm Timeout Check Alive Interval 1 sec x Check Alive Retry x Check Alive Device List For more details refer to the description for the parameters in the table below Parameters 1 Disconnection Alar...

Страница 38: ...with the ZigBee Coordinator so that if wireless communication is interrupted for a duration that exceeds the value specified for the Watchdog Timer WDT the status of the DO channel s on the ZigBee Router will immediately be changed to the Safe Value For a ZT 20xx IOG module being used as a ZigBee Router If the wireless communication is interrupted the state of the channel will be automatically cha...

Страница 39: ...ed Configuring the Safe Value To configure the Safe Value for the ZT IOG module follow the instructions below Execute the ZT 20xx IOG Configuration Utility See Section 3 2 Configuring the ZT 257x Module and 3 1 4 Software Settings for the ZT 20xx IOG Module for details of how to configure the ZT 2570 and ZT IOG modules ...

Страница 40: ...el Refer to the description for the Safe Value parameter in the table below Parameters 1 WDT Watchdog Timer ZT 2570 ZT 20xx IOG Description This parameter is used to specify the timeout value and the valid range which can be from 3 to 25 seconds 2 Safe Value for DO channels ZT 2570 ZT 20xx IOG Description If the module is disconnected and the timeout value specified for the WDT is exceeded the sta...

Страница 41: ...nnel Number or Address Mapping 2 DO Temporary Output 0x0000 to 0x0117 DI Temporary Input 0x0200 to 0x0317 Safe Value 0x0400 to 0x0517 Check Router Alive Channel See Note 1 0x0601 to 0x061F 04 05 Output Channel Number or Bit Count 2 0x0001 to 0x0118 Bit Count Response Byte Description Length Value 00 Address 1 0x01 to 0xF7 1 to 247 01 Function Code 1 0x01 02 Byte Count 1 The Byte Count of the Respo...

Страница 42: ...eturns a response indicating that the command was valid with a value of 0x05 meaning that communication with devices 01 and 03 that are connected to the remote ZT IOG module has been interrupted Note 1 Refer to the table below for details of how to read the status of the connection to the Check Router Alive channel from the ZigBee Coordinator using the Modbus Register address Check Router Alive Mo...

Страница 43: ...01 Function Code 1 0x02 02 03 Starting Channel Number or Address Mapping 2 DI Temporary Input 0x0000 to 0x0117 04 05 Output Channel Number or Bit Count 2 0x0001 to 0x0118 Bit Count Response Byte Description Length Value 00 Address 1 0x01 to 0xF7 1 to 247 01 Function Code 1 0x02 02 Byte Count 1 The Byte Count of the Response B Bit Count 7 8 03 Bit Values B Bit Values Error Response Byte Description...

Страница 44: ...00 00 08 79 CC Response 01 02 01 FF E1 C8 Reads the temporary input value from ZT 2570 module 01 and returns a response indicating that the command was valid with a value of 0xFF meaning that channels DI0 to DI7 on the remote ZT IOG module are enabled Temporary Input ZT IOG ZigBee Network ZT 2055 IOG 8 DI 8 DO ZT 2570 ZT 2571 280 CH DI 0 7 CH 0 7 ...

Страница 45: ... Output 0x0000 to 0x0117 Safe Value 0x0400 to 0x0517 04 05 Output Value 2 A value of 0xFF00 sets the Digital Output value to ON A value of 0x0000 sets the Digital Output value to OFF Response Byte Description Length Value 00 Address 1 0x01 to 0xF7 1 to 247 01 Function Code 1 0x05 02 03 Address 2 This value is the same as bytes 02 and 03 of the Request 04 05 Output Channel Number 2 This value is th...

Страница 46: ...e Command 01 05 00 8C FF 00 4D D1 Response 01 05 00 8C FF 00 4D D1 Sets the temporary Digital Output value for Channel DO140 on ZT 2570 module 01 to ON and returns a response indicating that the command was valid Temporary Output ZT IOG ZigBee Network ZT 2060 IOG 6 DI 4 DO ZT 2570 ZT 2571 280 CH DO 0 CH 140 DO Channel Offset 140 ...

Страница 47: ...Number 2 0x0001 to 0x0118 Bit Count 06 Byte Count 1 B Bit Count 7 8 07 Output Value B A bit corresponds to a channel When the bit is 1 it denotes that the value of the channel that was set is ON If the bit is 0 it denotes that the value of the channel that was set is OFF Response Byte Description Length Value 00 Address 1 0x01 to 0xF7 1 to 247 01 Function Code 1 0x0F 02 03 Starting Channel Number ...

Страница 48: ... 0F 00 8C 00 04 01 0F 6F 4D Response 01 0F 00 8C 00 04 95 E3 Sets the temporary Digital Output value for Channels DO140 to DO143 on the ZT 2570 module to ON and returns a response indicating that the command was valid Temporary Output ZT IOG ZigBee Network ZT 2060 IOG 6 DI 4 DO ZT 2570 ZT 2571 280 CH DO 0 3 CH 140 143 DO Channel Offset 140 ...

Страница 49: ...exist or to rejoin ZigBee Router Slave Lit The signal strength is High Blinking 500 ms The signal strength is Medium Blinking 1 second The signal strength is Low Blinking 2 seconds The signal strength is Low or no signal is unavailable ZigBee RxD Yellow LED ZigBee Communication Status Blinking The module is receiving ZigBee Data OFF The module is waiting to receive ZigBee Data ZigBee PWR Red LED Z...

Отзывы: