Page 1
TRP-C28 4-Channel Isolated Digital Input and 4-Channel Relay Output RS485 Remote Module User’s manual Printed Aug. 2005 Rev 1.0 Trycom Technology Co.,Ltd 1F, No.2-11,Sihu street ,Yingge Township, Taipei, Taiwan ROC Tel: 886-2-86781191 , Fax: 886-2-86781172 Web: www.trycom.com.tw Copyright Copyright Notice: 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.
Page 2
Introductions TRP-C28 provides 4 optical isolated digital input channels that allow you to input the logic signal from 0 to 30V DC and 4 power relays output . All channel features screw terminals for the convenience connection of field signals as well as LED to indicate channel status. Each output power relay equips with high surge current suppressors varistor to entirely protect your module and devices without damage when irregularly high power voltage input.
Page 3
Communication Wiring Warning Warning : Don : Don ’ ’ t connect external DC t connect external DC Jack and screw terminal DC input simultaneously. Jack and screw terminal DC input simultaneously. Pin Definitions Digital Input CH 3 RL4-COM Relay 4 –Common Digital Input CH 2 RL4-NC Relay 4-Normal Close...
Page 4
TRP-C28 Panel Layout Relay Output Connector Digital Input LED Indicator Relay Output LED Indicator Power or Watchdog/ RS485 flow LED Indicator Digital Input Connector External Voltage Input RS485 Communication DC Voltage Input From +18V~30V System Switch Configuration and hardware test.
Page 5
Block Diagram Wire Connection For Digital Input Wire Connection For Relay Output...
Page 6
1.Power off the module, then adjust Switch.1 to ON. 2.Power on the module ,The module will be reset to ID=00, baud rate:9600, checksum: Disable!. 3. Send command to configure TRP-C28. 4.Power off the module, then adjust the Switch to OFF. Self- test Switch.2 1.Power off the module , then adjust switch.2 to ON.
Page 7
Command List Command List Function Description Page Index %IDNNPPBBDD(CHK)(cr) Set the module’s configuration See 7.1~7.3 #IDPPDD (CHK)(cr) Digital Output Data See 8.1 #IDN (CHK)(cr) Read digital input N channel counter value See 9.1 #IDCN (CHK)(cr) Clear digital input N channel counter’s value See 9.2 #IDCW(CHK)(cr) Clear all digital input counter’s value...
Page 8
7.1 Set the module’s configuration *Must adjust the system configuration Switch.1 to ON ( See Page 6) Command %IDNNPPBBDD(CHK)(cr) First leading code Address of setting module 00-FF(HEX) New address of setting from 00-FF(HEX) The Digital I/O module type define to 40 Syntax Description Set new baud rate...
Page 9
8.1 Digital output data Command #IDPPFD(CHK)(cr) First leading code Address of setting module 00-FF(HEX) Output(relay) command parameter :00,0A Multi-Channel :1L:Single-Channel (L=0-3) Syntax description F=0, D:Sent the data from 0-F output for relay channel Checksum (cr) Carriage return Response >(CHK)(cr) Command valid !ID(CHK) (cr) Parameter invalid (*Command data error !) ?ID (CHK)(cr)
Page 10
Command valid CCCCC from 0 – 65535 (DEC) ?ID(CHK) (cr) Command Invalid EX: Send command:”#012”…..Read the TRP-C28 channel 2 counter value. Response:”!0100023”…..The digital input have been trigger 23 times. *Unless you save value to EEPROM by using the command “#IDCS”. The counter’s value will reset to 0 if power fail or send command “$IDRS”.
Page 11
10.1 Clear all digital input counters value Command #IDCW(CHK)(cr) First leading code Address of setting module 00-FF(HEX) Clear all digital input counters value Syntax Checksum description (cr) Carriage return Response !ID(CHK)(cr) Command valid ?ID (CHK)(cr) Command Invalid EX: Send command:”#01CW”…..Clear DI0-DI3 counter value to 0. Response:”!01”.
Page 12
11.1 Read digital input latched Command $IDLS(CHK)(cr) First leading code Address of setting module 00-FF(HEX) Read digital input latch S=0 Latch logic 0 Syntax description S=1 No use Checksum (cr) Carriage return Response !IDABCD(CHK)(cr) ACD:NO USE B:DI0-DI3 latch status ?ID (CHK)(cr) Command Invalid EX: Send command:”$01L0”…….Read digital input logic 0.
Page 13
“001” TRP-C24 “010” TRP-C26 ?ID(CHK)(cr) Command Invalid Data format table Function Input counter 0:rising Checksum 0:Disable 1:falling 1:Enable EX: Send command:$012…Read configuration . Response:”!01400640”……. DIO type=40,Baud-Rate=9600 (See 7.2) ,Data format=40 Input counter :rising ,Checksum= Enable, Model=0….TRP-C28 (See Data format table),...
Page 14
First leading code Address of setting module 00-FF(HEX) Reading TRP-C28’s name Syntax Checksum description (cr) Carriage return Response !IDNNNNNN(CHK)(cr) NNNNNN :The chars from 1 –6 chars ?ID(CHK)(cr) Command Invalid EX: Send command:$01M…Read the TRP-C28’s name. Response:”!01TRPC28”……. The module’s name is “TRPC28”.
Page 15
S=0 not been reset ?ID(CHK)(cr) Command Invalid EX: Send command:$015…Read the TRP-C28’s reset state . Response:”!011”……. The TRP-C28 has been reset. *If the module is system halt or detect abnormal voltage , the module will restart and reset the flag to “1” .
Page 16
!ID(CHK)(cr) Command valid ?ID(CHK)(cr) Command Invalid EX: Send command:”~01OTRYCOM”….. Change the TRP-C28’s name become to “TRYCOM”. Response:”!01”……. . Command valid. Then send the command “$01M”…read the TRP-C28’s name. Response:”!01TRYCOM”……. .The TRP-C28’s name is “TRYCOM”. 15.2 Set the module’s LED operating mode...
Page 17
16.1 Enable watchdog and set the timeout value Command ~IDWENN(CHK)(cr) First leading code Address of setting module 00-FF(HEX) Watchdog Enable Syntax Set the watchdog time(NN:00-FF) One Unit=0.1 Sec description FF: MAX. 25.5 Sec (cr) Carriage return Response !ID(CHK)(cr) Command valid ?ID(CHK)(cr) Command Invalid EX: Send Command:”~01WEFF”…..
Page 18
17.1 Read watchdog timeout value Command ~IDWR(CHK)(cr) First leading code Address of setting module 00-FF(HEX) Read watchdog timeout value Syntax Checksum description (cr) Carriage return Response !IDWANN (CHK)(cr) W: watchdog !ID (CHK)(cr) A=E: watchdog enable D: watchdog disable or safe mode NN: watchdog timeout value ?ID(CHK)(cr) Command Invalid...
Page 19
18.1 Read power on/safe value Command ~ID4V(CHK)(cr) First leading code Address of setting module 00-FF(HEX) Read power on/safe digital IO value Syntax V=P: Power On description V=S: Safe value Checksum (cr) Carriage return Response !IDABCD (CHK)(cr) A=0 B:DO0~DO3 C=0 D:DI0~ DI3 ?ID(CHK)(cr) Command Invalid EX: Send Command:~014S……….Read safe mode digital output status.
Page 20
19.1 Save current digital input status Command #**(CHK)(cr) First leading code Save current digital IO status( All modules on line). Checksum Syntax (cr) Carriage return description Response No Response EX: Send Command:”#**”………. Save current digital IO status of all modules on line. 19.2 Read synchronized data Command $ID4(CHK)(cr)
Page 21
How to use the utility for windows The TRPCOM utility can help you to test 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 Figure 1 1.The “Setting” function will initiate the software to set the Com Port from 1 to 8 and set the baud-rate from 1200 to 19200bps ,and checksum...
Page 22
Figure 3 If you don’t know the Baud-rate, ID or,Checksum you may select “Scan” to find the module’s setting.
Need help?
Do you have a question about the TRP-C28 and is the answer not in the manual?
Questions and answers