background image

*If   watchdog   is   in   enable   ,   send   the   Host   Ok!”command   before   watchdog   timeout   (B)   the 

watchdog will re-count, PWR LED will flashing after watchdog timeout.

8-23.Read power on/safe value

Command

~ID4V(CHK)(cr)

Syntax 

description

~

First Leading code

ID

Address of setting module 00-FF(HEX)

4

Read power on or safe mode I/O status

V

V=P: Power on mode I/O status

V=S: Safe mode I/O status

CHK

Checksum

(cr)

Carriage return

Response

!IDABCD

AB=DO0~DO7

CD=DI0~DI7

?ID(CHK)(cr)

Command invalid

Example:

Send Command:~014S……….Read safe mode digital output status.

Response:” !01080F”………. . Command valid, safe mode digital IO status is ”080F”.

32

Содержание TRP-C29U

Страница 1: ...tice The information in this manual is subject to change without prior notice in order to improve reliability design and function and dosed not represent a commitment on the part of the manufacturer N...

Страница 2: ...n Dual watchdog Module s firmware host computer traffic LED for each channels working status DIN rail and panel mount support Configured and self test by outer dip switch Support screw terminal 1 2 Sp...

Страница 3: ...1 4 Block Diagram...

Страница 4: ...nput CH 1 DO5 Open Collector output CH5 DI0 Digital Input CH 0 DO4 Open Collector output CH4 IN_COM External Voltage for Digital Input DO3 Open Collector output CH3 NC None DO2 Open Collector output C...

Страница 5: ...2 2 Wire Connection 3 USB to serial Driver Install...

Страница 6: ...gure1 Fig 1 3 1 Install Vista32 64 driver Find MSSetup exe utility which in the Vista64 folder Double click on MSSetup exe to start the installation process Make sure that the User installing the driv...

Страница 7: ...ete the driver installation 3 1 1 TRP C29U Device Installation Detection Connect TRP C29U to the USB Host controller of the PC using a USB cable The first time you plug in the cable into the USB port...

Страница 8: ...mX under the category Ports COM LPT Here X in ComX represents the serial port number You can see the same in the figure below 3 2 Install XP driver Find MSSetup exe and MSUninst exe which in the folde...

Страница 9: ...Press Install button to install the drivers for High Speed USB Multi serial Device During the installation process a warning message will popup informing the user that the software being used has not...

Страница 10: ...plug the adapter into the USB port Windows will bring up the Found New Hardware Wizard window to guide you through the initial configuration process Select the option No not this time and click on Ne...

Страница 11: ...in earlier section a warning message will popup informing the user that the software being used has not passed the Windows Logo testing You can ignore the warning message by clicking on the option Con...

Страница 12: ...The following window conveys that the OS had finished the software installation for High Speed USB Multi Serial Compound Device Click on Finish to complete found new hardware wizard...

Страница 13: ...Follow the same steps as explained for High Speed USB Multi Serial Compound Device for the second port installation Select the option Install the software automatically Continue Anyway...

Страница 14: ...The following wizard indicates that the OS has completed installing the software for the first serial port Continue the same process for installing the rest of the serial ports...

Страница 15: ...e under Universal Serial Bus Controllers and High Speed USB Serial Port Com X under the category Ports COM LPT Now the TRP C29U Device is ready to use 3 3 Uninstall XP driver Use MSUninst exe to unins...

Страница 16: ...High Speed Multi Serial Compound Device from the Add Remove panel and click on Remove option This will remove the MCSTRP C29U device driver from the PC The TRP C29U device driver can be un loaded thr...

Страница 17: ...tallation The Win2K software Installation Detection and Un Installation procedures are same as Win XP OS process The only difference being there is no need of user intervention during the detection of...

Страница 18: ...dress 01 Baud Rate 9600 DIO Mode Type 40 Checksum Disable RS485 Communication data format N 8 1 Modbus Protocol Factory Modbus Communication Protocol Back to INIT for Modbus 1 Adjust the switch to off...

Страница 19: ...host halt When the timeout interval expired the module will turn all output to predefined safe value This can prevent the controlled target from unexpected situation Safe mode If the user install the...

Страница 20: ...he module s name See 8 14 IDF CHK cr Read the module s firmware version See 8 15 ID5 CHK cr Read the module reset status See 8 16 IDONN CHK cr Change the module s name See 8 17 IDLEDA CHK cr Set the m...

Страница 21: ...and valid ID CHK cr Command Invalid 8 2 Baud rate setting BB 8 3 Data format setting DD Bit 7 6 5 4 3 2 1 0 Function Input counter 0 Rising 1 Falling Checksum 0 Disable 1 Enable 0 0 0 0 0 Counter Disp...

Страница 22: ...of setting module 00 FF HEX PP Output command parameter 00 0A Multi channel 1L Single channel L 0 F DD DD send the data from 00 FF output CHK Checksum cr Carriage return Response CHK cr Command valid...

Страница 23: ...mand valid 1 Digital output enable 0 digital output disable 8 5 Read digital input N channel counter value Example Send command 012 Read the TRP C29UM channel 2 counter value Response 0100023 The digi...

Страница 24: ...Clear CH2 counter value to 0 Response 01 If counter s value already been reset to 0 you must use command IDCS to save the new value in EEPROM again or the module will load old value if power fail or r...

Страница 25: ...input latch S S 0 Latch logic 0 S 1 No use CHK Checksum cr Carriage return Response IDABCD CHK cr ACD No use B DI0 DI7 latch status ID CHK cr Command Invalid Example Send command 01L0 Read digital in...

Страница 26: ...al input output status Command ID6 CHK cr Syntax Description First leading code ID Address of setting module 00 FF HEX 6 Read digital output status CHK Checksum cr Carriage return Response IDABCD CHK...

Страница 27: ...29U ID CHK cr Command Invalid Example Send command 012 Read configuration Response 01400603 DIO type 40 Baud Rate 9600 See 7 2 Data format 03 Input counter rising Checksum disable Model 3 TRP C29UM 8...

Страница 28: ...ion First Leading code ID Address of setting module 00 FF HEX F Command for leading module s version CHK Checksum cr Carriage return Response IDMODYYMMDD Mod The module type YY Year MM Month DD Date I...

Страница 29: ...abnormal voltage the module will restart and reset the flag to 1 8 17 Change the module s name Example Send command 01OABCDE Change the TRP C29UM s name become to ABCDE Response 01 Command valid Then...

Страница 30: ...g and set the timeout value Example Send Command 01WEFF Set the watchdog time for 25 5 Sec Response 01 Command valid When module count to 25 5 Sec the watchdog will into safe mode then PWR LED will fl...

Страница 31: ...Response 01 Command valid System LED will stop flashing 8 21 Read watchdog timeout value Example Send Command 01WR Read watchdog timeout value Response 01WD0F Command valid set the watchdog timeout is...

Страница 32: ...yntax description First Leading code ID Address of setting module 00 FF HEX 4 Read power on or safe mode I O status V V P Power on mode I O status V S Safe mode I O status CHK Checksum cr Carriage ret...

Страница 33: ...ut CH7 CH0 to 0001 0011 Response 01 Command valid Then Send Command 015P Set the power on mode After power fail or reset The module will load current DO status 8 25 Save current digital input output s...

Страница 34: ...IO status All modules on line Then send command 014 Read synchronized data Response 1010E00 1 Have been send the the DIO status valid is 010E After Read synchronized data A value is 1 Read again becom...

Страница 35: ...SU HEX DA HEX or RC HEX CRC16 HEX Response Format ID HEX FC HEX SU HEX DA HEX or RC HEX CRC16 HEX Error Format ID HEX FC HEX CRC16 HEX ID RS485 Device Address HEX 1 247 1Byte FC Function Code HEX 1 By...

Страница 36: ...00 CRC Read watchdog status 10 9 ID 46 0D 0S 00 CRC Set up LED panel status 10 10 ID 46 27 DD 00 CRC Set up power on mode 10 11 ID 46 28 00 CRC Read power on mode value 10 12 ID 46 29 DD 00 CRC Set up...

Страница 37: ...Module s name is C29 Error Response 01 C6 00 Error code 10 2 Set up the module s address Command ID 46 04 IP 00 00 00 CRC Syntax Description ID Address of setting module 1 247 46 Function Code 04 Set...

Страница 38: ...rror Response 01 C6 00 Error code 10 4 Set up the module s configuration Command ID 46 06 00 BD 00 00 00 00 00 00 CRC Syntax Description ID Address of setting module 1 247 46 Function Code 06 Set up m...

Страница 39: ...C29U s configuration Response 01 46 07 09 07 03 00 JUY 03 2009 TRP C29U Firmware Version Error Response 01 C6 00 Error code 10 6 Read module reset status Command ID 46 08 00 CRC Syntax Description ID...

Страница 40: ...or code 10 8 Set up watchdog timeout value or disable watchdog Command ID 46 0B WS 00 CRC Syntax Description ID Address of setting module 1 247 46 Function Code 0B Set up watchdog function WS WS 00 Wa...

Страница 41: ...ue Response 01 46 0C 01 0F Error Response 01 C6 00 Error code 10 10 Set up LED panel status Command ID 46 0D 0S 00 CRC Syntax Description ID Address of setting module 1 247 46 Function Code 0D Set Up...

Страница 42: ...sponse 01 C6 00 Error code Then send 01 46 09 00 After reset will get power on DD value 10 12 Read power on mode value Command ID 46 28 00 CRC Syntax Description ID Address of setting module 1 247 46...

Страница 43: ...00 Set up TRP C29U s safe mode value Response 01 46 29 00 Then send 01 46 0B 12 00 Waiting the watchdog timeout until the digital output value become 14 Error Response 01 C6 00 Error code Safe mode D...

Страница 44: ...y 00 Reserved code Response No Response 10 16 Set up single channel and latch status Command ID 05 SS NN DD 00 CRC Syntax Description ID Address of setting module 1 247 05 Function Code SS SS 00 Set u...

Страница 45: ...00 Set up the DO3 on Response 01 05 00 03 FF 00 Command valid Send command 01 05 00 02 00 00 Set up the DO2 off Response 01 05 00 02 00 00 Command valid When the module is in safe mode any digital out...

Страница 46: ...mber Response ID 01 BC DD CRC ID 01 Command Line BC Byte counter DD DIO Status ID 81 ER CRC ID 81 Function Code ER 00 Syntax error ER 01 Data Format error ER 02 Start channel error ER 03 I O out of ra...

Страница 47: ...Read digital input counter value Command ID 04 00 SS 00 NN CRC Syntax Description ID Address of setting module 1 247 04 Function Code 00 SS Start channel number SS 00 00 NN Channel number NN 01 08 Res...

Страница 48: ...end command 01 0F 00 00 00 08 01 25 Set up the digital output valid Response 01 0F 00 00 00 08 set up the CH0 CH2 CH5 Enable Send command 01 0F 02 04 00 04 01 00 Clear channel counter from CH4 CH7 to...

Страница 49: ...itiate the software to set the Com Port from 1 to 20 and setting the Baud Rate from 1200 to 115200 Checksum Enable or Disable See Figure 1 The Module Factory Setting is 9600 and ID is 01 Checksum is D...

Страница 50: ...If you don t know the module s ID may select Scan to find the module s setting 50 Figure 2...

Страница 51: ...nfiguration Example TRP C29 Configuration A Get Counter Value please click Digital Input D0 D7 button B Enable the digital output click Digital Output D0 D7 button C Set up new RS485 ID Baud Rate and...

Страница 52: ...12 Application 52...

Отзывы: