background image

 

24

2.13 $AALS

 

 

Description: 

Read Latched Digital Input

 

Syntax: 

$AALS[CHK](cr) 

 

$ delimiter 

character 

AA address 

of 

reading/response module (00 to FF) 

command for read latched digital input 

1=select latch high status, 0=select latch low status 

 

Response:

 

Valid Command: 

!(Data) 

 

Invalid Command: 

?AA 

 
(Data) readed status 1=the input channel is latched, 0=the   

input channel is not latched.

 

 

Example:

 

Command: $01L1 

Receive: !012300 

Read address 01 latch-high data, return 0123. 

 

Command: $01C 

Receive: !01 

Clear address 01 Latched data, return success. 

 

Command: $01L1 

Receive: !000000 

Read address 01 latch-high data, return 0000. 

 
 
 
 
 
 

Содержание EX-9060D

Страница 1: ... 38 4K 57 6K 115 2K Output channels 4 relay output channels RL1 RL2 Form A RL3 RL4 Form C Relay contact rating 0 6A 125VAC 2A 30VDC Surge strength 500V Operate Time 3mS max Release Time 2mS max Min Life 5 105 ops Input channels 4 isolated input channels with common source Isolation Voltage 3750Vrms Input impedance 3K ohms Input logical level 0 1V Max Input logical level 1 4 0V 30V LED 8 digital in...

Страница 2: ...Time Typical 3 msec Relay Off Time Typical 2 msec Insulation Resistance 1000M ohms at 500 VDC Digital Input Input Channels 4 isolated input channels with common source Logical Level 1 4V to 30V Logical Level 0 1V Max Input Impedance 3K Ohms Isolation Voltage 3750 Vrms Environment Modbus RTU Not support Support Power Requirement 10 to 30 VDC Power Consumption 1 9W 1 8W Operating Temperature 25 C to...

Страница 3: ...re connection 1 2 1 Block Diagrams Led Display EEPROM Single Controller RS485 Interface Power Supply 5V 5V RL1COM RL1NO RL2COM RL2NO EX9060D Data Data Vs GND IN COM IN0 IN3 RL3COM RL3NC RL3NO RL4COM RL4NC RL4NO ...

Страница 4: ... diagram for the EX 9060D Open Collector signal Input Dry Contact signal Input TTL CMOS signal Input Relay output in RL1 RL2 Relay output in RL3 RL4 IN COM IN0 INx IN0 INx IN COM IN COM IN0 IN1 INx IN COM IN0 IN1 INx ...

Страница 5: ...ult settings for the EX 9060D modules are as follows Module Address 01 DIO Type 40 Baud Rate 9600 bps Default settings for the EX 9060D M modules are as follows Protocol Modbus RTU Module Address 01 DIO Type 40 Baud Rate 9600 bps ...

Страница 6: ...s have the INIT switch located on the rear side of the module to allow easier access to the INIT mode For these modules INIT mode is accessed by sliding the INIT switch to the Init position as shown below To enable INIT mode please following these steps Step1 Power off the module Step2 Connect the INIT pin with the GND pin or sliding the INIT switch to the Init ON position Step3 Power on Step4 Sen...

Страница 7: ...ues and never halt The Host Watchdog is a software function to monitor the host s operating status Its purpose is to prevent the network from communication problem or host halt When the timeout interval expired the module will turn all outputs to predefined Safe Value This can prevent the controlled target from unexpected situation The EX9000 module with Dual Watchdog may let the control system mo...

Страница 8: ...nd the host watchdog timeout status is clear the module s output is set to predefined Power On Value 3 Output Command Value If the host watchdog timeout status is clear and user issue a digital output command like AA Data or AABBDD to module for changing the output value The module will response success receive 1 9 Latch Digital I P For example use connect the key switch to Digital input channel o...

Страница 9: ...ate Direction 0 Falling Edge 1 Rising Edge 2 Checksum Bit 0 Disable 1 Enable 3 The reserved bits should be zero Read Digital Input Output Data Format table Data of AA6 AA4 AALS First Data Second Data 00 Data of AA First Data Second Data Note Both the First Data and the Second Data are in two hexadecimal digitals format Module The First data The Second data EX9060 DO1 DO4 00 0F DI0 DI3 00 0F ...

Страница 10: ... setting module FF new data format for setting module If the configuration with new baudrate or new checksum setting before using this command it is needed to short the INIT to ground or sliding the INIT switch to the Init ON position of rear side The new setting is saved in the EEPROM and will be effective after the next power on reset Response Valid Command AA Invalid Command AA Example Command ...

Страница 11: ...onse No response Example Command No response Send synchronized sampling command to all modules Command 014 Receive 10F0000 Read synchronized data from address 01 return S 1 first read and data is 0F0000 Command 014 Receive 00F0000 Read synchronized data from address 01 return S 0 have readed and data is 0F0000 ...

Страница 12: ...s the output value Parameter for Multi Channel Output DD for command AABBDD Output Channels BB 00 0A BB 0B EX9042D 13 00 to FF DO 0 7 00 to 1F DO 8 12 EX9043D 16 00 to FF DO 0 7 00 to 1F DO 8 15 EX9044D 8 00 to FF DO 0 7 NA NA EX9050D 8 00 to FF DO 0 7 NA NA EX9055D 8 00 to FF DO 0 7 NA NA EX9060D 4 00 to 0F RL 1 4 NA NA EX9063D 3 00 to 07 RL 1 3 NA NA EX9065D 5 00 to 1F RL 1 5 NA NA EX9066D 7 00 ...

Страница 13: ... DO 0 7 0 to 4 DO 8 12 EX9043D 0 to 7 DO 0 7 0 to 7 DO 8 15 EX9044D 0 to 7 DO 0 7 NA NA EX9050D 0 to 7 DO 0 7 NA NA EX9055D 0 to 7 DO 0 7 NA NA EX9060D 0 to 3 RL 1 4 NA NA EX9063D 0 to 2 RL 1 3 NA NA EX9065D 0 to 4 RL 1 5 NA NA EX9066D 0 to 6 RL 1 7 NA NA EX9067D 0 to 6 RL 1 7 NA NA Response Valid Command Invalid Command Ignore Command Delimiter for ignore the command The module s host watchdog ti...

Страница 14: ...ule is EX9060D set address 02 output channel 0 on return success Command 021001 Receive Assume module is EX9060D set address 02 output channel 0 on return ignore The module s host watchdog timeout status is set and the output is set to Safe Value ...

Страница 15: ... channel to read Response Valid Command Data Invalid Command AA Data digital input counter value in decimal from 00000 to 99999 Example Command 032 Receive 0300103 Read address 03 digital input counter value of channel 2 return value 103 Command 025 Receive 02 Read address 02 digital input counter value of channel 5 return the channel is not available ...

Страница 16: ...o FF 2 command for read configuration Response Valid Command AATTCCFF Invalid Command AA TT type code of module it must be 40 CC baudrate code of module FF data format of module Example Command 012 Receive 01400600 Read the configuration of module 01 return DIO mode baudrate 9600 no checksum Note check configuration Tables ...

Страница 17: ...ata Invalid Command AA S status of synchronized data 1 first read 0 been readed Data synchronized DIO value See Section 1 10 for data format Example Command 014 Receive 01 Read address 01 synchronized data return no data available Command no response Send synchronized sampling to all modules Command 014 Receive 10F0000 Read address 01 synchronized data return S 1 first read and synchronized data 0...

Страница 18: ...o FF 5 command for read reset status Response Valid Command AAS Invalid Command AA S reset status 1 the module is been reset 0 the module is not been rested Example Command 015 Receive 011 Read address 01 reset status return module is been reset Command 015 Receive 010 Read address 01 reset status return no reset occurred ...

Страница 19: ...ommand Data Invalid Command AA Data First Data Second Data 00 Note Both the First Data and the Second Data are in two hexadecimal digitals format Module The First data The Second data EX9060 DO1 DO4 00 0F DI0 DI3 00 0F Example Command 016 Receive 0F0000 Assume module is EX9060 read address 01 DIO status return 0F00 digital output channel 1 4 are on digital input channel 0 3 are off ...

Страница 20: ...ter character AA address of reading response module 00 to FF F command for read firmware version Response Valid Command AA Data Invalid Command AA Data Firmware version of module Example Command 01F Receive 01D03 11 Read address 01 firmware version return version D03 11 ...

Страница 21: ...limiter character AA address of reading response module 00 to FF M address of reading response module 00 to FF Response Valid Command AA Data Invalid Command AA Data Name of module Example Command 01M Receive 019060M Read address 01 module name return name 9060M ...

Страница 22: ...module 00 to FF C command for clear latched digital input Response Valid Command AA Invalid Command AA Example Command 01L0 Receive 010F0F00 Read address 01 latch low data return 0F0F Command 01C Receive 01 Clear address 01 Latched data return success Command 01L0 Receive 000000 Read address 01 latch low data return 0000 ...

Страница 23: ...tched digital input N digital counter channel N to clear Response Valid Command AA Invalid Command AA Example Command 010 Receive 0100123 Read address 01 input channel 0 counter value return 123 Command 01C0 Receive 01 Clear address 01 input channel 0 counter value return success Command 010 Receive 0100000 Read address 01 input channel 0 counter value return 0 ...

Страница 24: ...tch high status 0 select latch low status Response Valid Command Data Invalid Command AA Data readed status 1 the input channel is latched 0 the input channel is not latched Example Command 01L1 Receive 012300 Read address 01 latch high data return 0123 Command 01C Receive 01 Clear address 01 Latched data return success Command 01L1 Receive 000000 Read address 01 latch high data return 0000 ...

Страница 25: ...alid Command AA Data First Data Second Data Note Both the First Data and the Second Data are in two hexadecimal digitals format Module The First data The Second data EX9060 DO1 DO4 00 0F DI0 DI3 00 0F Example Command 01 Receive 0F00 Assume module is EX9060M read address 01 DIO status return 0F00 digital output channel 1 4 are on digital input channel 0 3 are off ...

Страница 26: ...annel less than 8 For EX9044D 50D 55D from 00 to FF For EX9065D from 00 to 1F For EX9066D 67D from 00 to 7F Data is four characters for output channel less than 16 For EX9042D from 0000 to 1FFF For EX9043D from 0000 to FFFF Response Valid Command Invalid Command Ignore Command delimiter for ignore command The module is in Host Watchdog Timeout Mode and the output is set to safe value Example Comma...

Страница 27: ...ading response module 00 to FF O command for set module name Data new name for module max 6 characters Response Valid Command AA Invalid Command AA Example Command 01O9060M Receive 01 Set address 01 module name 9060M return success Command 01M Receive 019060M Read address 01 module name return name 9060M ...

Страница 28: ...col supported by the module 10 the protocol set in EEPROM is Normal mode 11 the protocol set in EEPROM is ModbusRTU mode Example Command 01P Receive 0110 Reads the communication protocol of module 01 and returns a response of 10 meaning the protocol that will be used at the next power on reset is normal mode Command 01P1 Receive 01 Sets the communication protocol of module 01 to Modbus RTU and ret...

Страница 29: ...mal mode 1 the protocol set in EEPROM is ModbusRTU mode Before using this command it is needed to short the INIT to ground or sliding the INIT switch to the Init ON position of rear side The new protocol is saved in the EEPROM and will be effective after the next power on reset Response Valid Command AA Invalid Command AA Example Command 01P1 Receive 01 Sets the communication protocol of module 01...

Страница 30: ... 2 19 Description Host OK Host send this command to all modules for send the information Host OK Syntax CHK cr delimiter character command for all modules Response No response Example Command No response ...

Страница 31: ...ress of reading response module 00 to FF 0 command for read module status Response Valid Command AASS Invalid Command AA SS module status 00 host watchdog timeout status is clear 04 host watchdog timeout status is set The status will store into EEPROM and only may reset by the command AA1 ...

Страница 32: ...2 21 AA1 Description Reset Module Status Syntax AA1 CHK cr delimiter character AA address of reading response module 00 to FF 1 command for reset module status Response Valid Command AA Invalid Command AA ...

Страница 33: ...character AA address of reading response module 00 to FF 2 command for read host watchdog timeout value Response Valid Command AAEVV Invalid Command AA E host watchdog enable status 1 Enable 0 Disable VV timeout value in HEX format each count is 0 1 second 01 0 1 second and FF 25 5 seconds ...

Страница 34: ...FF each for 0 1 second Response Valid Command AA Invalid Command AA Example Command 010 Receive 0100 Read address 01 modules status return host watchdog timeout status is clear Command 013164 Receive 01 Set address 01 host watchdog timeout value 10 0 seconds and enable host watchdog return success Command 012 Receive 01164 Read address 01 host watchdog timeout value return that host watchdog is en...

Страница 35: ...1 module status return host watchdog timeout status is set Command 012 Receive 01064 Read address 01 host watchdog timeout value return that host watchdog is disabled and time interval is 10 0 seconds Command 011 Receive 01 Reset address 01 host watchdog timeout status return success And the LED of this module stop flash Command 010 Receive 0100 Read address 01 module status return host watchdog t...

Страница 36: ...mand AA Data Power On Value or Safe Value For EX9042D 43D Data is VVVV where VVVV is the Power On Value or Safe Value For other modules Data is VV00 where VV is the Power On Value or Safe Value Example Command 0100 Receive Output address 01 Value 00 return success Command 015S Receive 01 Set address 01 Safe Value return success Command 01FF Receive Output address 01 Value FF return success Command...

Страница 37: ...37 Command 014S Receive 0100 Read address 01 Safe Value return 00 Command 014P Receive 01FF Read address 01 Power On Value return FF ...

Страница 38: ...e Response Valid Command AA Invalid Command AA Example Command 01AA Receive Output address 01 Value AA return success Command 015P Receive 01 Set address 01 Power On Value return success Command 0155 Receive Output address 01 Value 55 return success Command 015S Receive 01 Set address 01 Safe Value return success Command 014P Receive 01AA00 Read address 01 Power On Value return AA Command 014S Rec...

Страница 39: ... Normal mode 3 Command 00P0 is set EX9060 M to Normal mode after Repower On On normal mode user can set other setting like Address Baudrate Please check the EX9000 user manual 4 Command AAP1 is set to MODBUS mode after Repower On 5 Under Normal mode that Command AAP can check which mode it is after Repower On Response AA10 Normal AA11 MODBUS ...

Страница 40: ... 04 05 Input Output channel numbers 2 Bytes Input 0x0001 0x0004 Output 0x0001 0x0004 Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x01 02 Byte count 1 Byte 1 03 Input Output channel readback value 1 Byte 0x00 0x0F 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...

Страница 41: ...nction code 1 Byte 0x02 02 Byte count 1 Byte 1 03 Input channel readback value 1 Byte 0x00 0x0F A bit corresponds to a channel When the bit is 1 it denotes that the value of the channel that was Input response if the bit is 0 it denotes that the value of the channel that was no Input response Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x82 02 Exception code 1 Byte Refer to the ...

Страница 42: ...Bytes 0x0001 0x0004 Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x03 02 Byte count 1 Byte N x 2 03 Input channel count value N x 2 Byte Each channel can record a maximum count value up to 65535 0xFFFF N Number of input channels Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x83 02 Exception code 1 Byte Refer to the Modbus standard for more details ...

Страница 43: ...Bytes 0x0001 0x0004 Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x04 02 Byte count 1 Byte N x 2 03 Input channel count value N x 2 Byte Each channel can record a maximum count value up to 65535 0xFFFF N Number of input channels Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x84 02 Exception code 1 Byte Refer to the Modbus standard for more details ...

Страница 44: ... A value of 0xFF00 sets the output to ON A value of 0x0000 set it to OFF All other values are illegal and won t affect the coil Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x05 02 03 Output channel numbers 2 Bytes The value is the same as byte 02 and 03 of the Request 04 05 Output value 2 Bytes The value is the same as byte 04 and 05 of the Request Error Response 00 Address 1 Byte 1 2...

Страница 45: ...put value Clear DI count value 1 Byte 0x00 0xFF 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 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x0F 02 03 Starting channel 2 Bytes The value is the same as byte 02 and 03 of the Request 04 05 Output chann...

Страница 46: ...t status 2 Bytes 0x0001 Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x01 02 Byte count 1 Byte 1 03 Read WDT timeout status 1 Byte 0x00 The WDT timeout status is clear 0x01 The WDT timeout status is enable Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x81 02 Exception code 1 Byte Refer to the Modbus standard for more details ...

Страница 47: ...d WDT timeout value 2 Bytes 0x0001 Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x03 02 Byte count 1 Byte 2 03 Read WDT timeout value 1 Byte 0x0000 0x00FF WDT timeout value 0 255 in 0 1 second Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x83 02 Exception code 1 Byte Refer to the Modbus standard for more details ...

Страница 48: ...n code 1 Byte 0x03 02 03 Starting channel 2 Bytes 0x3038 04 05 Send Host OK 2 Bytes 0x0000 No Response 04 0x04 Send Host OK Request 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x04 02 03 Starting channel 2 Bytes 0x3038 04 05 Send Host OK 2 Bytes 0x0000 No Response ...

Страница 49: ...WDT timeout enable 0x0000 for WDT timeout disable 0xFF00 for Clear WDT timeout status Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x05 02 03 WDT timeout 2 Bytes The value is the same as byte 02 and 03 of the Request 04 05 WDT timeout 2 Bytes The value is the same as byte 04 and 05 of the Request Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x85 02 Exception code 1 By...

Страница 50: ...e 0 255 in 0 1 second Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x06 02 03 WDT timeout value 2 Bytes The value is the same as byte 02 and 03 of the Request 04 05 WDT timeout value 2 Bytes The value is the same as byte 04 and 05 of the Request Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x86 02 Exception code 1 Byte Refer to the Modbus standard for more details ...

Страница 51: ...channel s counter 30001 30004 R 0x0000 0xFFFF Clear DI channel s counter 00513 00516 W 0xFF00 DI count edge 02251 R W 0x00 0x0000 falling edge 0x01 0xFF00 rising edge DO channel s safe value 00129 00132 R W 0x00 0x0000 not set 0x01 0xFF00 set on to safe value The DO status will be change after change the safe value DO channel s power on value 00161 00164 R W 0x00 0x0000 not set 0x01 0xFF00 set on ...

Отзывы: