Home

TRP-C29U User's Manual

image

Contents

1. Set up TRP C29U s safe mode value Response 01 46 29 00 Then send 01 46 OB 12 00 Waiting the watchdog timeout until the digital output value become 14 Error Response 01 C6 00 Error code Safe mode Digital output states when watchdog timeout 10 14 Read safe mode value O a 00 46 2A 00 Module command line Response py ee CSG DD Safe mode value ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example Send Command 01 46 2A 00 Read TRP C24 s safe mode value Response 01 46 2A 12 Safe mode value is 12 Error Response 01 C6 00 Error code 10 15 System stand by Host OK 462 00 RO po o Response No Response 10 16 Set up single channel and latch status ID 05 SS NN DD 00 CRC 05 Function Code SS 00 Setup single channel output SS 01 gt Clear latch status NN 0 DD 0 SS 02 gt Clear single channel counter value DD 00 Digital output value DD 00 disable DD FF enable ON ID 05 SS NN DD 00 CRC Command valid ID 85 FF CRC Watchdog mode status ID 85 Error Code ER 00 Syntax error ID 85 ER CRC ER 01 Data Format error ER 02 Start channel error ER 03 I O out of range Set up Single Channel mode Output control for 1 Bit Example Send command 01 05 00 03 FF 00 Set up the DO3 on Response 01 05 00 03 FF 00 Command valid Send command 01 05 00 02
2. File Edit View Favorites Tools Help back i gt Fi pa Search Wes Folders k Address IC F English CD _011 12007 TRP C0SS Driveri Winga ME XP 2Kversionl 3 6 0 File and Folder Tasks F Makea new folder Ed Publish this Folder to the Web IL mssetup High Speed USE Multiserial Ins MsUninst High Speed USB MultiSerial Un Other Places Use MSSetup exe utility to install the driver Double click on the utility to start the installation process Press Install button to install the drivers for High Speed USB Multi serial Device High Speed USB Multiserial Device Drivers Setup Press Install button to Install the drives for High Speed USB Multizenal Device For Cancelling the Installation press Exit button mr a During the installation process 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 Continue Anyway software Installation A The software you ere installing haz not passed Windows Logo testing to very its compatibility with Wwindowe lt P Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the software vendor for software that has
3. ay High Speed USB Serial Pork ea al JF High Speed USB Serial Port pata Bett F ad Processors Disable 8 Sound video and game contro Uninstall J gt rm PA pr PO pro A i H E Uninstalls the driver For the selected device Scan for hardware changes Properties The OS will prompt the user whether to uninstall the device from the system Click on OK to uninstall or Cancel to terminate the un installation 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 MCSTRP C29U When you connect MCSTRP C29U to the USB Win 2000 OS will automatically detect the device without interference of the user 4 System Configuration Switch The TRP C29U support the Modbus RTU and ASCII communication protocol It has a two pins external dip switch that allow user to select protocol between Modbus RTU and ASCII The dip switch also provides back to default function when user forget the configuring information stored in EEPROM such as ID RS 485 Module address baud rate and data format Default setting ID Address 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 off position 2
4. BB Baud rate DD Data format See data format table IDPPBBDD CHK er Module model BITO 2 000 TRP C28 001 TRP C24 010 TRP C26 011 TRP C29U ID CHK cr Command Invalid Response 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 13 Reset pesca First Firstleadingcode sss code Syntax ID Address of setting module 00 FF HEX Description Reset the TRP C29U module Checksum Response ID CHK cr Command valid ID CHK cr Command Invalid Example Send command 01RS Reset TRP C29UM Responserl01 ce cece ee eee Have been reset 8 14 Read the module s name so Frstieangene CO a description Response NON AA ANC AB oor NA AAAI The chars from 1 chars IDOL AR cr Command Invalid Example Send command 01M Read the TRP C29UM s name Response 01TRPC29 The module s name is TRPC29 8 15 Read the module s firmware version A First Leading code Do Address of setting module 00 FF HEX poo Command for leading module s version IDMODYYMMDD Mod The module type YY Year MM Month DD Date ICH Example Send command 01F Read the TRP C29UM s version Response 101C29M0703 The TRP C29UM s version date is 11 06 2009 8 16 Read the module reset sta
5. Clear all digital input counters value Save all digital input counters value to EEPROM Read digital input latched Clear digital input latched Read digital input output status Read the TRP C29U configuration Reset Read the module s name Read the module s firmware version Read the module reset status Change the module s name Set the module s LED operating mode Enable watchdog and set the timeout value Disable watchdog Read watchdog timeout value System stand by Host OK Read power on safe value Save current digital output status to power on or safe mode Save current digital input status Read synchronized data Page Index See 8 1 8 3 See 8 4 See 8 5 see 8 6 see 8 see 8 8 see 8 9 see 8 10 See 8 11 See 8 12 See 8 13 See 8 14 See 8 15 see 8 16 See 8 17 see 8 18 see 8 19 see 8 20 see 8 21 See 8 22 see 8 23 See 8 24 See 8 25 See 8 26 We offer the utility to guide you to configure the module the utility is with on line RS485 modules scanning and searching function You can find the utility in the CD which bundled in TRP C29U standard package 8 1 Configure TRP C29U IDNNPPBBDD CHK cr First leading code ID Address of setting module 00 FF HEX New address of setting from 00 FF HEX Syntax Da PP The Digital I O module type define to 40 Description COMENT O U Response ND CHKYer Command valid ID CHKXcr Command Invalid 8 2 Baud rate setting BB AAA AA
6. 00 00 Set up the DOZ2 off Response 01 05 00 02 00 00 Command valid When the module is in safe mode any digital output command are invalid you will get the response ID 8F FF which means the module is in safe mode you can t change output status Until the watchdog disable Reset and power fail will not affect watchdog mode 10 17 Read digital input output status ID 01 00 SS 00 08 CRC Response Example SS 00 Read DO status SS 20 Read DI status SS 40 Latch low SS 60 Latch High 00 08 Output channel number ID 01 Command Line ID 01 BC DD CRC BC Byte counter DD DIO Status ID 81 Function Code ER 00 Syntax error ER 01 Data Format error ER 02 Start channel error ER 03 I O out of range ID 81 ER CRC Send command 01 01 00 00 00 08 Read DO status Response 01010136 CH1 2 on CH4 5 on Send command 01 01 00 20 00 08 Read DI status Response 01 01 01 DF CH5 Enable Send command 01 01 00 40 00 8 Read Latch Low Response 01 01 01 01 bitO have been triger 10 18 Read digital input counter value ID 03 00 SS 00 NN CRC 00 SS Start channel number SS 00 OO NN Channel number NN 01 08 Module command Line ID 03 BC DATA CRC BC Byte Counter Each channel 2byte DATA Channel counter value ID 83 Error Code ER 00 Syntax error ID 83 ER CRC ER 01 Data Format error ER 02 Start channel error ER 03 I O
7. 1200 2400 4800 9600 19200 38400 57600 115200 8 3 Data format setting DD mE PP Counter Display Mode Function Input counter Checksum 0 Normal Dec 0 Rising 0 Disable 1 Engineer Mode Hex 1 Falling 1 Enable Default Example Send command 0001400600 New ID is 01 D I O type is 40 Bard Rate 9600 Checksum setting disable is 00 Response 101 If you adjust the switch to ON ON the ID will be back to INIT Example Send command 000340054 New ID 03 Bard Rate 4800 Checksum Enable Response 03 Example send command 000340054 New ID 03 Bard Rate 4800 Checksum Enable Response 03 Example Send command 0101400601 New ID 01 Bard Rate 9600 Checksum Disable Counter mode hex Response 01 Then send 010 read counter value Response 101001B counter value 1B HEX 8 4 Digital output data IDPPDD CHK cr ee First leading code Address of setting module 00 FF HEX Syntax Output command parameter 00 0A Multi channel Description 1L Single channel L 0 F DD send the data from OO FF output gt CHK cr Command valid Response D CHK cr Parameter invalid Command data error ID CHK cr Command Invalid Multi Channel mode Output control for one BYTE Example Send command 010A2P Data 2F DO8 DO0 0010 1111 Response Command valid Ex
8. Command List soma LS Function Description ID 46 00 00 CRC Read the module s name ID 46 04 IP 00 00 00 CRC Set up the module s address 10 2 ID 46 05 00 CRC Read the module s configuration ID 46 06 00 BD 00 00 00 00 00 00 CRC Set up the module s configuration ID 46 07 00 CRC Read the module s Firmware 10 5 ID 46 08 00 CRC Read module reset status ID 46 09 00 CRC Reset ID 46 OB WS 00 CRC Set up watchdog timeout value or disable 10 8 o a ID 46 0C 00 CRC Read watchdog status ID 46 OD 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 X md gt ee de Y ID 46 29 DD 00 CRC OLUP Sale made YANE 10 13 ID 46 2A 00 CRC Read safe mode value 10 14 ID 05 SS NN DD 00 CRC 10 16 ID 01 00 SS 00 08 CRC 10 17 ID 03 00 SS 00 NN CRC 10 18 ID 04 00 SS 00 NN CRC 10 19 ID OF SS NN 00 CN BC 00 CRC Set up single channel and latch status 10 20 10 1 Read the module s name D 46 00 00 CRC Address of setting module 1 247 Reserved code Read module s name ID 46 00 00 Module command Line ID 46 00 00 OC 29 00 CRC OC 29 Module s Name is C29 ID C6 OO CRC ID C6 CRC C6 Function Code 00 Reserved code EX Send Command 01 46 00 00 Read the TRP C29U s name Response 01 46 00 00 OC 29 00 Module s name is C29 Error Response 01 C6 00 Error code 10 2 Se
9. T Response IID CHK cr Parameter invalid ID CHK cr Command Invalid Example Send command 01C2 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 reset 8 7 Clear all digital input counters value First leading code ID Address of setting module 00 FF HEX CW Clear all digital input counters value Syntax CHK Checksum description cr Carnage return Response NOC AK ocr Command valid ID CHAK er Command Invalid Example Send command 401 CW Clear DIO DI7 counter value to 0 Response 01 After the command IDCW you must save new value in EEPROM again or the module will load old value if power fail or reset 8 8 Save all digital input counters value to EEPROM HDCSICHK cr fio ates of song modul FRE Response WOPCAK ier Command valid FID OAK ford Command Invalid Example Send command 01CS Save DIO DI7 counters value to EEPROM Response 101 Then after power fail or reset Send command 010 Read DIO counter value Response 0100187 Last time save value is 187 8 9 Read digital input latched IDLS CHK cr First leading code ID Address of setting module 00 FF HEX Read digital input latch Description S 0 Latch logic 0 gt S 1 No use Sy
10. is in safe mode any digital output command are invalid you will get the response ID 8F FF which means the module is in safe mode you can t change output status Until the watchdog disable Reset and power fail will not affect watchdog mode 11 How to use the utility for windows The TRPCOM utility can help you to test and configuration the module s data transmit and receive digital input and output communication status User may download TRPCOM software from TRYCOM web www trycom com tw 1 The Setting function is for user to initiate 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 Disable Turn module s switch to OFF ON position into ASCII communication mode a TRPCOM 2013 Test Utility Communication configuration Initial Setting Communication Protor iz ASCII Default ASCH Checksum Enable Description TRECOM utility is designed to test TRP Series modules In the settings menu be sure to select the ASCII Modbus protocal com port parameters fram the drop down menus and selecting Checksum Selects Enable or Disable before continuing 2 The Terminal function is for user to input command user can control all of module s digital input output status or wait to get module response status See Figure 2 EZ TR
11. out of range 10 19 Read digital input counter value ID 04 00 SS 00 NN CRC DSSS ring module ar Module command Line ID 04 BC DATA CRC BC Byte Counter Each channel 2byte DATA Channel counter value ID 84 Error Code ER 00 Syntax error ID 84 ER CRC ER 01 Data Format error ER 02 Start channel error ER 03 I O out of range Example Send command 01 04 00 00 00 04 Read channel 0 3 counter value Response 01 04 08 00 28 00 5A 00 53 00 55 Command valid CHO 28 CH1 5A CH2 53 CH3 55 10 20 Clear save DI counter value and set up DO output Command OF SSNN 00 CN BC 00 CRC Function Code SS 00 Digital Output SS 02 Clear Counter value SS 03 Save Counter value to EEPROM Start channel number NN 00 07 Channel number 1 8 RH GG Counter 01 00 Turtput value ID OF SS NN 00 00 CRC Command Valid ID 85 Function Code ER 00 Syntax error ID 8F ER CRC ER 01 Data Format error ER 02 Start channel error ER 03 I O out of range Example Send command 01 OF 00 00 00 08 01 25 Set up the digital output valid Response 01 OF 00 00 00 08 set up the CHO CH2 CH5 Enable Send command 01 OF 02 04 00 04 01 OO Clear channel counter from CH4 CH 7 to EEPROM Response 01 OF 02 00 00 OF Command valid Send command 01 OF 03 00 00 08 01 00 Save channel counter from CHO CH7 to EEPROM Response 01 OF 03 00 00 08 Command valid When the module
12. Adjust the switch to on off position 3 Reboot ASCII Protocol ACSII communication protocol Back to INIT for ASCIl 1 Adjust the switch to on off position 2 Adjust the switch to on on position User may adjust the switch in power on status no system reboot require Enter self test mode Adjust the switch to on on then reboot INIT ID 00 Baud Rate 9600 Data format 00 Checksum disable 5 Function description Power on mode When power fail system reset or host watchdog timeout will cause the module reboot then into power on mode the module s digital output value will return to the before setting And module can accept the host s command to change the digital output value Dual Watchdog Module self watchdog The module s watchdog is a hardware reset circuit while working in harsh or noisy environment the module may be down by the external The circuit may let the module to work continues and never halt Host watchdog The host watchdog is software function to monitor the module s output states to prevent the module from communication problem or system halt due to unexpected situation It s purpose is to prevent the RS485 network from communication problem or 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 watch dog enable on the RS485 line Th
13. ICOM 2013 Test Utility a EN IDA4TRPC29 If you don t know the module s ID may select Scan to find the module s setting Fe TRPCOM 2013 Test Utility ion 1020 Oj x Setting Termial Scan TERNP About IC Mame Description TRP C24 16 CH DOO TRP 26 16 CH DI TRP E2B 4 CH DI EDO TRP E29 85H Ol amp D Disable Disable Disable 9600 Disable scan The Module Status COM ja R5485 ID jos Baud Rate 9600 Checksum Disable stop Scan Unknow Analog alueTio tal Input Counter value Do D1 D2 D3 D4 DS DE O 00046 00034 00023 O0053 00031 00043 00031 00047 DS Dg DA DE DC OO DE DF DOD Status HUE Command 4047 Response IDADODA Auto Read Digital Output Control Di Cr Dr Ds D4 DS DE Dy DE p3 DA DE E EJE DE DIF Remote O Configuration Baud Rate ASC Check Sum TRP C68 Analog Type esoo Disable Oe 1 0 Module ID CES Mode TRP C68 Data Format Write EEPROM 011 formal bl fo Voltage Description The Scan Function 1 Test TRP Series Ro455 Remote AID 2 set TRP Seres parameter contains ID Baud Rate patterns and so on Select the module which one you want setting then click Example TRP C29 Configuration A Get Counter Value please click Digital Input DO D7 button B Enable the digital output click Digital Output DO D7 button C Set up new RS485 ID Baud Rate and data format then click
14. Logo testing to venfy its compatibility with Wwindnawe lt P Tellme why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of pour system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway Found New Hardware Wizard Please wait while the wizard installs the software High Speed USE MultiSerial Compound Deviec Back Pert gt Carcel 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 Found Mew Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for ar High Speed USE MuliSenal Compound Device Click Finish to close the weard z Back Cancel 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 Found New Hardware Wizard Continue Anyway Welcome to the Found New Hardware Wizard This wizard helps you install software for High Speed USB Multis eral Compound Device 9 If your hardware came wath an installation CD SE or flopp
15. TRP C29U 8 channel isolated digital input and 8 channel isolated digital output O C USB serial interface module Support ASCII and Modbus Protocol User s Manual Printed Sep 2014 Rev 1 2 Trycom Technology Co Ltd No 35 Zhongxing Rd Guishan Township Taoyuan County 333 Taiwan Tel 886 3 350 3351 Fax 886 3 350 3352 Web www trycom com tw Copyright Copyright Notice The information in this manual is subject to change without notice to improve reliability design and function and does not represent a commitment on the part manufacturer No part of this manual may be reproduced copied or transmitted in any form without prior written permission by the manufacturer Products mentioned in this manual are mentioned for identification purposes only In this manual product names appearing may or may not be registered trademarks of their respective companies or copyright 1 Introduction TRP C29U is USB to serial interface that provides with 8 optical isolated digital input channels and 8 chamnel digital output open collector All channel features screw terminals for convenient connection of field signals as well as LED s to indicate channel status Input channels are equipped with 3750Vms DC isolation For easy user access TRP C29U can enter configuration mode and self test mode with outer dip switch TRP C29U support both ASCII and Modbus protocol with a full set of command dual watch dog and auto reset function the module can be
16. Write to EEPROM button 12 Application ls ar E 3 U WE Motor ON OFF Alarm Security Lock System Control Lamp ON OFF Gas Alarm input Counter Input Relay Input TTL Input Channel open collector 8 Channel Digital Input USB
17. ample Send command 0100A8 Data A8 DO8 DO0 1010 1000 Response gt Command valid Example Send command 01000G Data 0G Data error Response 01 Parameter error Single Channel mode Output control for one BIT Example Send command 011001 Data 01 DO0 1 Response Command valid Send command 011201 Data 01 D02 1 Response gt Command valid Send command 011700 Data 00 DO7 0 Response gt Command valid 1 Digital output enable O digital output disable 8 5 Read digital input N channel counter value HON CHK e0 First leading code Address of setting module UU FF HE PN Digital input channel from channel D 3 syntax Checksum N CHK description EA Carriage return IDCCCCCICHKEN Command valid CCCCC from O 65535 DEC PUCHKA cr Command Invalid Example Send command 012 Read the TRP C29UM channel 2 counter value Response 0100023 The digital input have been trigger 23 times Unless you save value to EEPROM by using the command FIDCS The counter s value will reset to 0 if power fail or send command IDRS 8 6 Clear digital input N channel counter value IDCN CHK cr First leading code S Address of setting module 00 FF HEX yntax are Clear N channel counter value to O Description N 0 7 Channel DIO DI7 digital input
18. bi directionally remote controlled by PC in ASCII or Modbus RTU protocol 1 1 Features USB directly power supply input System get a seriall com port when USB plug in Support ASCII and Modbus RTU protocol Supports baud rates from 1 2Kbps to 115 2 Kbps All 8 channels digital input ca be used as counter Digital input signal with 3750Vrms isolation protection Dual watchdog Module s firmware host computer traffic LED for each channels working status DIN rail and panel mount support Driver Support Android Win8 1 Vista64 32 Windows 98 ME 2000 XP WIN 7 CE5 0 7 0 and Linux and Mac OS Configured and self test by outer dip switch 1 2 Specifications Built in USB 2 0 to serial bridge Input channel 8 digital input channels Input optical isolation 3750 Vrms Input logical level O 1V max Input logical level 1 4 0V 30V Digital Input can be used as counter channel 8 Input counter Dec 0 65535 max or Hex OOOO FFFF max Input impedance 3Kohm Input Counter frequency 100Hz Input distance 500M max Digital output Maximum voltage 30V Digital output Maximum current 100 mA Digital output isolation 3750Vrms Communication interface USB to serial Communication speed Baud rate from 1 2kbps to 115 2Kbps Dual watchdog Hardware reset circuit module and host operating status Signal LED Power on all channels Power supply Directly inout from USB Connection type Screw terminal ac
19. cepts AWG 12 32 wires Power consumption 1 2W Operating environment 10 to 50 C Storage temperature 20 to 70C Humidity 10 90 Non condensing Dimension 151mm X 75mm X 26mm Weight 400g 1 3 Panel Layout screw Termina DIN fall 151mm SW 26 mm Screw Terminal TRP C29U USB To 8 CH Dil and amp CH DO Module ry PWR 1 4 Block Diagram VCC EEPROM E Photocoupler IM Cast OG Photocoupler CPU la USB to y Serial VOC P Suge Protection 1 5 Pin Definitions DIS Digital Input CH 5 Di6 Digital Input CH 6 D4 Digital Input CH 4 DI7 gt Digital Input CH 7 DIS Digital Input CH 3 DO7 Open Collector output CH7 Di2 Digital Input CH 2 DO6 Open Collector output CH6 D Digital Input CH 1 DO5 Open Collector output CH5 Digital Input CH 0 D Open Collector output CH4 2 IN COM External Voltage for Digital Input DO3 Open Collector output CH3 NC O Noe O O Do2 Open Collector output HE RC O f pen Gallecior output HO 2 1 Communication Wiring BC hanes Digital Input USB to Serial A LILY IN COM iO DIO r EA D11 O DI2 110 DI3 ID poy 4033330 usdo inding Y pa31jOST HO 91 F73 310000000 Xx 900 3 USB to serial Driver Install Notice When you finished the TRP C29U USB to serial driver install the O S will detect dual serial ports For TRP C29U there only
20. ction View Help NES EL DYDICD ROM drives 4 Floppy disk controllers Floppy disk drives 3 Human Interface Devices E IDE ATAJATAPI controllers ae Keyboards _ Mice and other pointing devices H Monitors SI Multi port serial adapters BY Network adapters E oh Other devices y Ports COM amp LPT A Communications Port COMI High Speed USB Serial Port COM4 ay High Speed USB Serial Pork COMS qe 8 Sound video and game controllers Se Storage volumes System devices Universal Serial Bus controllers TEK EJ Now the TRP C29U Device is ready to use 3 3 Uninstall XP driver Use MSUninst exe to uninstall the TRP C29U device driver from your PC Double click on the utility to run the Uninstaller Click on OK to proceed further High Speed USB Multi Serial Device Drivers Uninstaller Adapter Drivers and all of its compcnents on this system A This program ill Uninstall the High Speed USB Multizerial Use the Exit button to complete the Uninstaller utility No need to restart the PC unless prompted by the OS The driver can also be uninstalled from Control panel Add Remove Programs Select the 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 ES Add or Remove Programs EEE Bal Currently installed p
21. d code ID 46 OC Module command line ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example Send Command 01 46 OC 00 Read TRP C29U s watchdog value Response 01 46 OC 01 OF Error Response 01 C6 00 Error code 10 10 Set up LED panel status IN ae n S 0 Turn on all LED when DIO enable off S 1 Turn off all LED when DIO enable on Example Send Command 01 46 OD 01 00 Response 01 46 OD 00 Error Response 01 C6 00 Error code 10 11 Set up power on mode O O fResemedene ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example Send Command 01 46 27 01 00 Set up TRP C29U s power on value Response 01 46 27 00 Command valid Error Response 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 0 46 2500 CRC A E 00 46 28 Module command line Re a eee DD Power on value ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example Send Command 01 46 28 00 Read TRP C29U s power on value Response 01 46 28 08 Power on DO status DO7 DOO is 00010011 Error Response 01 C6 00 Error code Power on mode Digital output states when power on 10 13 Set up safe mode value DN CS ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example send Command 01 46 29 14 00
22. e host will send the reset module s watchdog command one by one when the host is not send the command May be is RS485 off line or host halt the module will watchdog timeout then into the safe mode if the module into the safe mode the digital out will not be changed until the watchdog disable 6 TRPCOM ASCII Command Protocol Description Command Format Leading Code ID Address Command CHK cr Response Format Leading Code ID Address Data CHK cr 7 How to Calculate the Checksum 1 Calculate all characters of the command string to get the ASCII sum except the character return 2 Mask the sum of string with OFFH Example Send the command is 06M Sum of string is 0 6 M 24H 30H 4D A1P The checksum and CHK A1 Response string with checksum is A1 8 Command List Command List IDNNPPBBDD CHkK cr IDPPFD CHK cr IDN CHK cr IDCN CHK cr IDCW CHK cr IDCS CHK cr IDLS CHK cr IDC CHK cr ID6 CHK cr ID2 CHK cr IDRS CHK cr IDM CHkK cr IDF CHK cr ID5 CHK cr IDONN CHkK cr IDLEDA CHK cr IDWENN CHK cr IDWD CHK cr IDWR CHK cr CHK cr ID4V CHK cr ID5V CHK cr CHK cr ID4 CHK cr Function Description Set the module s configuration Digital output data Read digital input N channel counter value Clear digital input N channel counter value
23. ec Response 01 Command valid When module count to 25 5 Sec the watchdog will into safe mode then PWR LED will flash before timeout if host send the watchdog will re counted Send Command 01WE00 Set the watchdog disable Response 01 Command valid When the module is in safe mode any digital output command are invalid you will get the response IDWE which means the system is in safe mode you can t change output status Reset and power fail will not affect watchdog mode 8 20 Disable watchdog IDWD CHK ier 2 p O eooo o i eramo S Syntax Cr Carriage return description Response DC AK cr Command valid AO CHAK Sr Command Invalid Example Send Command 01WDP Watchdog disable Response 101 Command valid System LED will stop flashing 8 21 Read watchdog timeout value IDWR CHK cr mee COMAS Er Syntax description l Response NOVWANTA OAK Sch wW watchdog IO CAR fcr AE watchdog enable D watchdog disable or safe mode Nh watchdog timeout value DOLAR fcr Command Invalid Example Send Command 01WR Read watchdog timeout value Response 01WDOF Command valid set the watchdog timeout is OF 1 6 Sec 8 22 System stand by Host OK Jom oyntax cr Carriage return description wae Watchdog Watchdog Watchdog Enable Timeout Disable NN y Safe Mode Dig
24. eturn description Send Command Save current digital IO status of all modules on line Example 8 26 Read synchronized data SIDA CHKO ch 5 Firstleadingeode OOO O o asst seing meore ii Response ABC DEOD MC AE fcr Command valid 4 1 Have been send 0 Have been read BC Digital output status DE Digital input status Before send this command do not send the command ey Send Command Save current digital IO status All modules on line Example 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 become to 0 9 Modbus RTU Command Description The TRP C29U support Modbus RTU protocol The serial communication data format is Start bit 1 Data bit 8 Parity check None Stop bit 1 Baud rate 1200bps 115200bps 9 1 Modbus Syntax Command Format ID HEX FC HEX 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 Byte SU Sub Function HEX 1 Byte DA Data Format No Limit RC Reserved code No Limit CRC Cyclic Redundancy Check 2 Byte Error Response If CRC IS mismatches error the response is empty 10 Modbus RTU
25. ine YY Year MM Month DD D ID 46 07 YY MM DD 00 CRC sal ont ate 00 Reserved code ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example send Command 01 46 07 00 Set up TRP 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 JO 4608 ORO A Response ID 46 08 OD 00 CRC D 0 Have been read D 1 Have been reset ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example send Command 01 46 08 00 Read the module s digital input status Response 01 46 08 1 00 have been reset 10 7 Reset Command JO 600 00 CRC AA SS Response _ D 46 09 00 CRC Command valid ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example send Command 01 46 09 00 Read the module s digital input status Response 01 46 09 00 Command valid Error Response 01 C6 00 Error code 10 8 Set up watchdog timeout value or disable watchdog DN ee A lt a WS 00 Watchdog Disable Watchdog timer from 01 FF 100ms 25 5 Sec ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example Send Command 01 46 OB 05 00 Set up TRP C29U s watchdog timer 500ms Response 01 46 OB 00 Command valid Error Response 01 C6 00 Error code 10 9 Read watchdog status ON ae SE Reserve
26. ital Output Invalid A B g P c Before watchdog timeout Send the Host ok NN Watchdog timeout value If watchdog is in enable send the Host Ok l command before watchdog timeout B the watchdog will re count PWR LED will flashing after watchdog timeout 8 23 Read power on safe value BNE IO of setting module 00 FF HEX A bon AAA a a on or safe mode I O status o ls P Power on mode cree status V S Safe mode I O status CHK Checksum o cr Carriage return IDABCD AB DO0 DO7 CD DI0 DI7 ID CHK cr Command invalid Example Send Command 014S Read safe mode digital output status Response 101080F Command valid safe mode digital lO status is 080F 8 24 Save current digital output status to power on or safe mode First leading code Address of setting module UU FF HEA save the current digital output is safe or power on syntax mode description P Power On V S Safe value Response NO CAR cr Command valid OL AR cr Command Invalid Example Send Command 010013 set up digital output CH7 CHO to 0001 0011 Response 101 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 status O First leading code save current digital ll statusi All modules on line Response Syntax cr Carriage r
27. lug in the cable into the USB port Windows will start installing the device driver software You can see the installation status at the pop up message of system tray After installation the pop up message says Your devices are ready to use Device driver software installed successfully TRP C29U device detection can be confirmed by checking at the Device manager Check for High Speed USB MultiSerial Compound Device under Universal Serial Bus controllers and you will find MosChip High Speed USB Serial Port ComxX under the category Ports COM LPT Here X in ComX represents the serial port number You can see the same in the figure below Es Device Manager Seles File Action View Help SE A DD CD ROM drives Fe 4 Floppy disk controllers q Floppy disk drives 43 Human Interface Devices IDE ATAJATAPI controllers Keyboards Mice and other pointing devices id Monitors SI Multi port serial adapters E8 Network adapters oh Other devices Ports COM amp LPT A Communications Port COM F High Speed USB Serial Port COME A High Speed USB Serial Port COMS EZ Sound video and game controllers s Storage volumes System devices Universal Serial Bus controllers Elo oe el Fae EX 3 2 Install XP driver Find MSSetup exe and MSUninst exe which in the folders for Win XP 2K and Win98 ME operation system amp Version1 3 6 0
28. ntax Response IDABCD CHK cr ACD No use B DIO DI7 latch status ID CHK cr Command Invalid Example Send command 01L0 Read digital input logic 0 Response 1010200 DI1 have been latched Digital input latch User key in a digital signal to the module and want to read the response of key stoke However the user will lost the stoke information because the key input is pulse digital 2 input If user read by the command ID6 in time A and time B the response is that no key stoke Use command IDLS can solve this problem user may read the key stoke in time position A and B 8 10 Clear digital input latched SIDO CHK cr 5 CS fo Aes of sting medan FED Response DCH Example Send command 010 Clear digital input latch Response 0 65 Latch have been clear 8 11 Read digital input output status SID6 CHK r EE First leading code Syntax ID Address of setting module 00 FF HEX Description 6 Read digital output status Checksum CHK 2ID CHK cr Command Invalid Example Send command 016 Read digital I O status Response 10121CP 21 Output DOO DO5 enable CF Input DI4 DI5 enable 8 12 Read the TRP C29U configuration ID2 CHK cr First leading code Syntax ID Address of setting module 00 FF HEX Description Read configuration CHK Checksum Command valid PP Digital I O type 40
29. one set of serial port can be use and the other one set of serial port is non function 1 Power on your computer and boot to Windows 2 Put the driver CD in the CD ROM then select the driver of O S you want See figure File Edit View Favorites Tools Help peck ea ra Search E Folders Hab Address 5 FrEnglish_CD_011120071TRP COSSiDriver E File and Folder Tasks A A r reece AL a Make a new folder A ed Publish this Folder to the Web oo Vistas Vistab4 nta winga ME XP K a TRp coes 5 i My Documents E Shared Documents a My Computer Fig 1 AP Ot 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 driver must be a member of the Administrator group on the system You will get a User Account Control window saying An unidentified program wants access to your computer Click on Allow to continue installing the Driver You will get an installation window as below press Install button to install the drivers for High Speed USB Multi Serial Device High Speed USB MultiSerial Device Drivers Setup Press Install button to Install the dives for High Speed USB Multiseral Device For Cancelling the Installation press Exit button During the installation process a Windows Security warning message pops
30. passed Windows Logo testing Continue Anyway STOP Installation The utility will display a message stating Installation completed Use Exit button to complete the driver installation High Speed USB Multi enal Device Drivers Setup og Installation completed Fress Est to terminate the application Mo P need to restart the machine Unplug and Replug the Device ifit is currently connected Connect TRP C29U to the USB Host controller of the PC by using a USB cable The first time you 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 Next button to continue The following wizard helps you install the software for High Speed USB Multi Serial Compound device Select the option Install the software automatically and click on Next to proceed further Found New Hardware Wizard Please wait while the wizard searches z High Speed USB MultiSenal Compound Device As specified 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 Continue Anyway Hardware Installation A The software vor are installing hor this rardware High Speed USB MulttSernal Compound Device haz not passed Windows
31. rograms C Show updates Sort by Name P Change or F m i gt ed Z Deep Size 4 33MB Programs Te High Speed USB MultiSerial Compound Device e To change this program or remove it From your computer click Change Remowe Change Remove Add New GI Microsoft Visual Studio 6 0 Enterprise Edition Size 301 00MB Programs fe Microsoft Web Publishing Wizard 1 53 Size 0 14MB m 15 7L 2303 USB to Serial Size 1 04MB y La Add Remove E 2ealtek AC 97 Audio Size 1 31MB Windows ee Components ie 515 661FA n FE 55 900 PCI Fast Ethernet Adapter Driver Size 0 04MB Y ge Tepcom set Program A TRECOM C Program Files Project1 Size 426 00MB Access and Defaults The TRP C29U device driver can be un loaded through Device Manager as well Go to Device Manager Select High Speed USB Multi Serial Compound Device from the Universal serial Bus controllers Right Click on it Select Uninstall as shown below Es Device Manager Fie Action View Help 3 y ig Display adapters 4 BYD CD ROM drives 4 Floppy disk controllers H Floppy disk drives 3 Human Interface Devices y IDE ATAJATAPI controllers se Keyboards 5 Mice and other pointing devices a Monitors S Multi port serial adapters 88 Network adapters h Other devices ES Lexmark 6200 Series Scan of Ports COM amp LPT PH Communications Port TOMI o gt Sf ECP Printer Port LPT1
32. t up the module s address A ID 46 04 00 00 00 00 CRC ID 46 04 00 00 00 00 Change module ID OK ID C6 OO CRC ID C6 CRC C6 Function Code 00 Reserved code EX Send Command 02 46 04 03 00 00 00 Set up the new ID is 03 Response 01 46 04 00 00 00 00 New ID is 03 Error Response 01 C6 00 Error code 10 3 Read the module s configuration DN O 00 fResenedeode code A 46 05 00 Module command Line ID 46 05 00 BD 00 00 00 00 00 00 CRC BD Baud Rate See 8 2 00 00 00 00 00 00 Reserved code ID C6 OO CRC ID C6 CRC C6 Function Code 00 Reserved code Example Send Command 01 46 05 00 Read TRP C29U s configuration Response 01 46 05 00 06 00 00 00 00 00 00 06 BD 9600 See 8 2 baud rate table Error Response 01 C6 00 Error code 10 4 Set up the module s configuration DN nn vo BD 00000000000 BD 00 00 00 00 00 00 BD Baud Rate See 8 2 es TTE 46 06 00 Module command Line ID 46 06 00 00 00 00 00 00 00 00 CRC Responce 00 00 00 00 00 00 00 00 Reserved code ID C6 00 CRC ID C6 CRC C6 Function Code 00 Reserved code Example Send Command 01 46 06 00 OA 00 00 00 00 00 O0 Set up TRP C29U s configuration Response 01 46 06 00 00 00 00 00 00 00 00 Set up OK Error Response 01 C6 00 Error code Baud Rate set to 115200 10 5 Read the module s Firmware DN pa ID 46 07 Module command L
33. tus SIDS CHKO cr oO O o OO O O f es of sting noe FE Response NOS CCAR cr gt 1 has been reset s U not been reset TIDAL Command Invalid Example Send command 015 Read the TRP C29UM s reset state Response 011 The TRP C29UM has been reset If the module is system halt or detect abnormal voltage the module will restart and reset the flag to 1 8 17 Change the module s name IDONN CHK e r po O f ef sting O FEE Erie TRROMenns Response HOCH Example Send command 01OABCDE Change the TRP C29UM s name become to ABCDE Response 101 Command valid Then send the command 01M read the TRP C29UM s name Response 101ABCDE The TRP C29UM s name is ABCDE 8 18 Set the module s LED operating mode Cerner O First Leading code ee of setting module 00 FF HEX A 0 Turn on all LED when DIO enable off A 1 Turn off all LED when DIO enable on cr Carriage return Response DICH Example Send command 01LEDO Turn off all LED when logic 1 ON Response 010FF Command valid 8 19 Enable watchdog and set the timeout value IDWENN CHO fer ARO o ramonar oyntax MN set the watchdog time NM 00 FF One Lint 0 4 Sec description FF MAX 25 6 Sec Response NOC AK fcr Command valid OCH Iter Command Invalid Example Send Command O1WEFF Set the watchdog time for 25 5 S
34. up informing that Windows cannot verify the publisher of this driver software Ignore the warning message by clicking on the option install this driver software anyway 5 Windows Security amp Windows cant venty the publisher d this driver sottware Dont install this driver software 7 You should check your manufacturers website For updated driver software For your device Pere rererrrrrer eer er errr teeter ere rere rere rere errr ere terre rere rer ere rere terre rer err e reer rere rrr rere terete rere rere terete rere rere tree rere r rrr reer etter eter treet re rere re rere tre rete terre rer erry Install this diver software anyway Only install driver software obtainedFrom your manufacturer s website or disc Unsigned software From other sources may harm your computer or steal information gt Ses details You will get the above message two times and you have to select install this driver software anyway The utility displays a message stating Installation completed Use Exit button to complete the driver installation High Speed USB MultiSerial Device Drivers Setup need to restart the machine Unplug and Replug the Device iit is oe Installation completed Press Exit to terminate the application No currently connected Install 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 p
35. y disk insert it now What do you want the wizard to do Install the software automaticaly Recommended O Install fron a list or specific location Advanced Click Next to ecntinue Hardware Installation The software vor are installing f r this sardware High Speed USB Multtsernal Compound Device haz not passed Windows Logo testing to verfy its compatiblity with Windows lt P Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operaton of pour system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that haz passed Windows Logo testing Continue Anyway E 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 Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for sa High Speed USB MulttSenal Compound Device Click Finish to close the wizard lt Back Care TRP C29U device detection can be confirmed by checking the Device manager Check for High Speed USB Multi Serial Compound Device under Universal Serial Bus Controllers and High Speed USB Serial Port Com X under the category Ports COM LPT Es Device Manager File A

Download Pdf Manuals

image

Related Search

Related Contents

Manual de Usuario  2008年発行文化なかの 6月号[PDF:2MB]  Manuale Heritage (ITA)  Laser FF 55  Pitco Frialator 14 Fryer User Manual  T'nB UCPUREPL  Sanyo AVM-3651G CRT Television User Manual  El Poder de la Intercesión  

Copyright © All rights reserved.
Failed to retrieve file