Summary of Contents for Trycom Technology TRP-C28H
Page 1
Isolated 4 Channel Digital Input with counter and 4 channel AC Relay Modbus TCP Module Support TRP-ASCII, Modbus RTU/ASCII protocol User’s Manual Printed Dec. 2013 Rev 1.0 Trycom Technology Co., Ltd 1F, No.2-11, Sihu street, Yingge Township, Taipei, Taiwan ROC Tel: 886-3-3503351, Fax: 886-3-3503352 Web: www.trycom.com.tw...
Page 2
TRP-C28H with another TRP-C28H remote control directly, do not need to run the software and equipment. TRP-C28H also offers the maximum connection 16 host client to link the network server that is easy to operate in Modscan32 ,Modbus Poll, CAS Modbus Scanner and SCADA ...application uses TCP mode and Virtual-COM mode.
Relay operating life: 2 X 10(7). Communication interface: Ethernet RJ45. Configuration mode: Device Manager, WEB settings. Matching remote control: with another TRP-C28H. Heart Beat: TCP Port sent string every 5 seconds. TCP Maximum Connection:1~16. ...
Page 4
2-2. Block Diagram 2-3. Factory Button Hold down the button, and then power on, until the power light flashes, Release the button. 2-4. Factory parameter values...
STEP2: Connect TRP-C28H with network by RJ45 cable. If the cable is properly connected the “LINK” LED will light up. *The TRP-C28H Support Auto-MDIX, A straight-through or crossover RJ45 cable can be used to make a connection directly to the HUB/Router/PC LAN port.
Page 8
D: Saving and Loading Configuration from external log File or memory. 4-2. Searching TRP-C28H Once TRP-C28H is connected to the network the DSM software will search it and display it in a window by name, IP address, Mac….Information. 4-3.Configuring Server Properties Select the “NO.”...
Page 9
Device Name: Device server name, Maximum 10 chars. Model Name: TRP-C28H. MAC Address The TRP-C28H MAC address. DHCP If DHCP is disabled, it allows user setting the IP address, Subnet mask, Gateway.
Page 10
If DHCP is enabled, the IP address, Subnet mask, Gateway address will be dynamically configuration by DHCP server such router. When DHCP is enabled, but the DHCP server is not available on the network, the TRP-C28H will timeout then back to factory setting IP=192.168.1.1.
Page 11
The Web Server can be used to configure the TRP-C28H from any web browser software (such as I.E). In Internet Explorer type the IP Address of the TRP-C28H into the address field and press the Enter key. The following window will appear: Example: If TRP-C28H’s IP is 192.168.1.1 ,Please Input the 192.168.1.1 then enters at web address, the web-page...
Page 12
4-5. TRPCOM Test Utility The TRPCOM test utility may help to use the debugging program development phase, the user can find this software in our CD internal directory copied to the hard disk, and then directly execute TRPCOM.exe. The execution TRPCOM.exe, enter the IP & Port click "Link" button It can be input the TRP-ASCII instruction set.
Page 13
5. TRP-ASCII Communication Protocol TRP-C28H supports three modes of communication Protocol TRP-ASCII, Modbus RTU, Modbus ASCII. TRP-ASCII Command Protocol Description Command Format :”Leading Code”+”ID Address”+”Command”+”CHK”+(cr) . at :”Leading Code”+”ID Address”+”Data”+”CHK”+(cr) . How to calculate the checksum 1. Calculate all characters of the command string to get the ASCII sum, except the character return.
Page 14
Command List Function Description Paragraph index %IDNNPP00DD(CHK)(cr) Setting module configuration See 5-1 #IDN (CHK)(cr) Read digital input channel counter value See 5-2 #IDCN(CHK)(cr) Clear digital input N channel counter value See 5-3 #IDCW(CHK)(cr) Clear all digital input counters value See 5-4 #IDCS(CHK)(cr) Save all digital input counters value See 5-5...
Page 15
5-1. Setting module configuration Command %IDNNPP00DD(CHK)(cr) First leading code Address of setting module 00-FF(HEX) Syntax New address of setting from 00-FF(HEX) Description The Digital I/O module type define to 40 Data format Checksum (cr) Carriage return Response !ID(CHK) (cr) Command valid ?ID (CHK)(cr) Command Invalid DD: Data Format...
Page 16
5-2. Read digital input channel counter value Command #IDN(CHK)(cr) First leading code Syntax Address of setting module 00-FF(HEX) description Digital Input channel 0~3 Checksum (cr) Carriage return Response !IDCCCCC(CHK) (cr) Command valid CCCCC from 0~65535 ?ID (CHK)(cr) Command Invalid Ex:Send command:”#012” Read the TRP-C26H channel 2 counter value Response: ”!0100023”…..The digital input have been trigger 23 times.
Page 17
5-4. Clear all digital input counters value Command #IDCW(CHK)(cr) First leading code Syntax Address of setting module 00-FF(HEX) description Clear all channels counter values Checksum (cr) Carriage return Response !ID(CHK) (cr) Command valid ?ID (CHK)(cr) Command Invalid Ex:Send command:”#01CW”…Clear all channels counter value. Response: ”!01”…...
Page 18
5-6. Read digital input latched Command $IDLS(CHK)(cr) First leading code Address of setting module 00-FF(HEX) Syntax description S=0 Latch logic 0, S=1 No use. Checksum (cr) Carriage return Response !IDLLHH(CHK)(cr) LL=DI0~DI7 status, HH=DI8~DI15 status. ?ID(CHK) (cr) Command Invalid Ex:Send command:”#01L0”…Read all channels latch value. Response: ”!01000F”…...
Page 19
5-8.Digital Output Data Command #IDPPDD(CHK)(cr) First leading code Syntax Address of setting module 00-FF(HEX) description D I/O type :0A/ 00 DO0~DO3 low byte data (Multi-Channel) :1L/ AL: DO0~DO3 low byte data (Single-Channel) L=0~3 DD:00~FF (Milti-Channel) DD:00 or 01 (Single-Channel) Checksum (cr) Carriage return Response...
Page 20
Address of setting module 00-FF(HEX) description Command for reading module’s version Checksum (cr) Carriage return Response !IDMODDDMMYY(CHK)(cr) MOD :The module’s model DD: Date MM: Month YY : Year ?ID(CHK)(cr) Command Invalid EX: Send command:$01F…Read the TRP-C28H’s version. Response:”!01C24H090113”……. The TRP-C28H’s version date is “01/09/2013”.
(cr) Carriage return Response !IDNNNNNNNNN(CHK)(cr) NNNNNN :The chars from 1~9 chars ?ID(CHK)(cr) Command Invalid EX: Send command:$01M…Read the TRP-C28H’s name. Response:”!01TRPC24H”……. The module’s name is “TRPC24H”. 5-12. Reset Module Command $IDRS(CHK)(cr) First leading code Syntax Address of setting module 00-FF(HEX)
Page 22
Response !ID (CHK)(cr) Command valid ?ID(CHK)(cr) Command Invalid EX: Send Command:”~01O123456789”…Change Name. Response:” !01”……. . Command valid! Send command:$01M…Read the TRP-C28H’s name. Response:”!01123456789”……. The module’s name is “TRPC24H”. 5-14. Set LED operating mode Command ~IDLEDA(CHK)(cr) First leading code Syntax description Address of setting module 00-FF(HEX) Set the module’s LED operating mode...
5-15. Enable Watchdog Command ~IDWE(CHK)(cr) First leading code Syntax Address of setting module 00-FF(HEX) description Watchdog function Checksum (cr) Carriage return Response !ID(CHK)(cr) Command valid ?ID(CHK)(cr) Command Invalid EX: Send Command:”~01WE”……….Enable Watchdog . .. Response:” !01”……. Command valid. *The user can not change the digital output state when watchdog enable, this mode will keep until the watchdog disable.
Page 24
5-17. Read Watchdog State Command ~IDWR(CHK)(cr) First leading code Syntax Address of setting module 00-FF(HEX) description Read Watchdog State (cr) Carriage return Response !IDWN (CHK)(cr) N=E Enable N=D Disable ?ID(CHK)(cr) Command Invalid EX: Send Command:”~01WR”…Read Watchdog state. Response:” !01WE”……. . Watchdog Enable. 5-18.
Page 25
5-19. Set the digital output status Power on/Save Mode status Command ~ID5V(CHK)(cr) First leading code Syntax Address of setting module 00-FF(HEX) description Save the current digital output is save or power on mode V=P Power on V=S Safe mode (cr) Carriage return Response !ID (CHK)(cr)
Page 26
User can use the virtual-com program with TRPCOM.exe for Modbus RTU test; these programs can be found in our directory of the CD! Install the Virtual-COM Step 1. Insert the TRP-Serial CD and find the TRP-C28H folder. Step 2.Click “Vcomm.exe” icon then install Virtual-COM utility. *The Virtual COM utility support multi-language, please select which language do you need.
Page 27
Step5. Run VCOMM.exe then click right button select “New Virtual COM” Step6. Select “Select Serial Port” and input TRP-C28H IP and port then press “OK”. Step7. If Virtual-Com setting success, the display will appear bellow. Step8.Run TRPCOM utility then select virtual-com port make a TRP-C28H command.
Page 28
* TRP-C28H in use the Virtual com mode, the default data format is 9600, N, 8,1, this mode is not allowed to change.
Page 29
Modbus TCP Command List Command List Function Description C28H Description Index ID 01 00 SS 00 NN Read Coils Read relay output readback value ID 02 00 SS 00 NN Read Discrete Inputs Read the current digital input value ID 03 00 SS 00 NN Read Holding Registers Read the current relay output readback count value ID 04 00 SS 00 NN...
Page 30
6-2. Read Discrete Inputs Read the current digital input value Command ID 02 00 00 00 NN 1Byte Address of setting module 1~247 1 Byte Function Code Syntax Description 00 SS 2 Bytes Start channel number, 0x0000 00 NN 2 Bytes Input channel number,0x0001~0x0004 ID=1~247 02:Function Code...
Page 31
6-4. Read Input Registers Read the current digital input count value Command ID 04 00 SS 00 NN 1Byte Address of setting module 1~247 1 Byte Function Code Syntax 00 SS 2 Bytes Start channel number, 0x0000~0x0004 Description 00 NN 2 Bytes Output channel number,0x0001~0x0004 ID=1~247 04:Function Code...
Page 32
6-6. Write Coils Write multi channel output data Command ID 0F 00 SS 00 NN BC 0L 1Byte Address of setting module 1~247 1 Byte Function Code 00 SS 2 Bytes Start channel number, 0x0000~0x0003 Syntax Description 00 NN 2 Bytes Output channel number=0x0001~0x0004 1 Bytes Byte counter 1 Bytes Write output data L=0~F Response...
Page 33
6-8. Write multiple registers Write multi channel counter value Command ID 10 00 SS 00 CN BC DD DD .. 1Byte Address of setting module 1~247 1Byte 10=Function Code Syntax 00 SS 2 Bytes Start channel number, 0x0000~0x0003 Description 2 Bytes 00 CN Counter Number =0x0001~0x0004 1 Byte...
Page 34
6-10.Read the module’s name Command ID 46 00 00 Address of setting module 1~247 Syntax Function code Description Read module’s name Reserved code ID 46 00 00 ….Module command Line ID 46 00 00 0C 28 00 Response 0C 28 :Module’s Name is C28 ID C6 00 ID C6 C6:Function Code 00: Reserved code EX: Send Command:”01 46 00 00”…….Read the TRP-C28’s name.
Page 35
6-12.Read the module’s Firmware Command ID 46 07 00 Address of setting module 1~247 Function Code Syntax Description Read module’s Firmware Reserved code ID 46 07 ……Module command Line YY:Year MM :Month DD:Date ID 46 07 YY MM DD 00 00 : Reserved code Response ID C6 00...
Page 36
6-14.Read watchdog status Command ID 46 0C 00 Address of setting module 1~247 Function Code Syntax Description Read watchdog status Reserved code ID 46 0C ……Module command line WT=01 Watchdog enable ID 46 0C WT Response WT=00 Watchdog Disable ID C6 00 ID C6 C6:Function Code 00: Reserved code Example: Send Command:”01 46 0C 00”…Read watchdog status.
7. Pair Mode TRP-C28H support pairing mode with the TRP-C28H, Applied to 4 digital channels input and 4 AC relay output with over the network, without any driver with computer hardware. All digital LED flashes in pairing mode until successfully paired will stop blinking; TRP-C28H sustained in connection automatically, regardless of any party the power to re-open or network disconnection to ensure normal transmission.
Need help?
Do you have a question about the TRP-C28H and is the answer not in the manual?
Questions and answers