Trycom Technology TRP-C68 User Manual

TRP-C68
8-Channel Analog Input to Digital Output Isolated Module
Support ASCII and Modbus RTU protocol
User’s Manual
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.
2
1. Introduction
TRP-C68, an 8-channel Analog to Digital Converter (ADC), takes an analog input signal and converts the input into a digital output signal. It accepts analog input-a voltage or a current-and supports the sample rate in “Normal” or “Fast” mode. All channels feature screw terminals for convenient connection, All analog inputs are provided with isolation and surge protection to protect the module against high voltage spikes, as well as ground potential differences. TRP-C68 support both ASCII and Modbus protocol, with a full set of command, dual watch-dog, and auto reset function the module can be remote controlled by PC in ASCII or Modbus RTU protocol.
1-1. Features
Support ASCII and Modbus RTU protocol. Photo Isolation 3750V between digital and analog. All channels can input analog signal by voltage or current. Baud rate from 1.2Kbps to 115.2Kbps. Surge protection on RS-485 interface. LED display to indicate power and communication. Dual Watchdog for hardware reset circuit and host operating status. External switch for hardware and module’s configuration. Support screw terminal, or external DC power supply. Wide input range DC power supply.
1-2. Specifications
Resolution: 16 Bit Sample rate:
Normal mode: 10 sample / sec (24 bit). Fast Mode: 60 sample / sec (16 bit).
Bandwidth:
Normal Mode: 15.72Hz. Fast Mode:/78.72Hz…fast.
Zero drift: 0.03uV/C. Span drift: 25 ppm/C. Accuracy:
Normal 0.1 or better. Fast: 0.5 or better.
Analog Input range:
Voltage: ± 10V, ± 5V,± 2.5V,± 1.25V,± 650mV.
Current: +/-20 mA
CMRR:92db min/50/60Hz. Analog input over voltage protection:± 35V.
RS485 connector: Industrial plug-in screw terminal. Communication Interface: RS485,2 wires.
3
LED indicator: Power and communication. Transmission distance : 4000ft(1200M). Speed: From 1.2K to 115.2Kbps. Power consumption:1.2 Watt. Power requirement: DC input from +10 to 30 V. Operating Temperature: 0 to 60. Storage Temperature: -20 to 60. Humidity: 10-90%, Non-condensing. Dimension: 151mm X 75mm X 26mm. Weight: 398g.
1-3. Panel layout
4
1-4. Block Diagram
1-5. Pin Definitions
VIN5+ Analog Input Channel 5+ VIN4- Analog Input Channel 4-
VIN5- Analog Input Channel 5- VIN4+ Analog Input Channel 4+
VIN6+ Analog Input Channel 6+ VIN3- Analog Input Channel 3-
VIN6- Analog Input Channel 6- VIN3+ Analog Input Channel 3+
VIN7+ Analog Input Channel 7+ VIN2- Analog Input Channel 2-
VIN7- Analog Input Channel 7- VIN2+ Analog Input Channel 2+
DATA+ RS485 DATA+ VIN1- Analog Input Channel 1-
DATA- RS485 DATA- VIN1+ Analog Input Channel 1+
DC 10~30V Input Voltage DC 10~30V VIN0- Analog Input Channel 0-
GND Input Voltage Ground VIN0+ Analog Input Channel 0+
1-6. Communication Wiring
5
2. Wire Connection for Digital Input
2-1. Wire Connection For Current Input
2-2. Wire Connection For Voltage Input
3. System Configuration Switch
The TRP-C68 DIO and AIO 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 INIT” function when user forget the configuring information stored in EEPROM such as ID (RS-485 Module address), baud rate and data format.
*TRP-C68 Default setting:
ID Address: 01, Baud Rate: 9600, Analog Mode Type: 08, Checksum: Disable, Data Format: 00, All analog input channels: Enable,
RS485 communication data format: N, 8, 1.
6
Modbus
Protocol
(Factory
)
Modbus Communication Protocol.
Back to
INIT
for
Modbus
Step1. Adjust to “on off” position Step2. Reboot the system.
ASCII
Protocol
ACSII communication protocol.
Back to
INIT
for
ASCII
Step1. Adjust to “on on” position Step2. Reboot the system.
*INIT: ID=00, Baud-Rate: 9600, Data format: 00, TT=08. RS485 communication protocol:N,8,1 * The INIT* mode: if you forgot the C68 ID or baud-rate before you adjusted, you can adjust the switch to INIT* mode then easy to get ID=00.
3-1. How to manually more positive voltage calibration
Send command "$ID7"…....make sure the TRP-C68 8 CH. enable.
Send command "~IDE0"….calibration enable. Send command "~IDE1"….set up the calibration enable.
Send command "$ID8"........perform the Zero calibration.
Send command "~IDE1".....set up calibration enable again.
Send command "$ID9"... ….perform the full calibration.
Send command "~IDE0"......calibration disable.
7
4. Function description
Auto voltage calibration: The TRP-C68 will auto calibrate the voltage when power up. However
user may also use voltage calibrating command to correct the voltage while the environment temperature is obvious difference, or the module was long period in idle. When the voltage must be calibrated by software command, it is necessary to reboot the module before calibration.
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. The circuit may enable the module to continue working and never halt.
Host watchdog: The host watchdog is a software function to monitor the module's output states. The purpose is to prevent the RS-485 network from communication problem or host halt due to unexpected situation. When the timeout interval expired, the module will turn all outputs to predefined safe value. This can prevent the controlled target from unexpected situation.
5. ASCII Command Description
The TRP-C68 DIO and AIO support the ASCII communication protocol, the serial communication data format is Parity check: None, data Bit: 8, Stop bit: 1, baud rate can setting from 1200bps~115200bps.
5-1.Factory Setting
ID Address: 01, RS485 communication protocol: 9600, 8, N, 1 AI Mode Type: ±10V Checksum: Disable.
5-2.Protocol Syntax
Command Format:” Leading Code”+”ID Address”+”Command”+”CHK”+(cr) . Response Format:”Leading Code”+”ID Address”+”Data”+”CHK”+ (cr) .
5-3. How to Calculate the Check Sum
1. Calculate the ASCII sum of all characters of the command string 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“=“A1H”……The checksum and [CHK]=“A1”. Response string with checksum is :”A1“.
8
5-4. ASCII Command List
Command List Function Description Page Index
%IDNNTTBBDD(CHK)(cr) Set the module configuration
5-5
#ID(CHK)(cr) Read all analog input
5-9
#IDN(CHK)(cr) Read analog input from N channel
5-10
$ID2(CHK)(cr) Read the module’s configuration
5-11
$ID5(CHK)(cr) Read reset status
5-12
$ID6HL(CHK)(cr) Select analog input channel enable/disable
5-13
$ID7(CHK)(cr) Read analog channel enable/disable status
5-14
~01EV(CHK)(cr) Set up the calibration enable/disable
5-15
$ID8(CHK)(cr) Perform zero calibration
5-16
$ID9(CHK)(cr) Perform full calibration
5-17
$IDRS(CHK)(cr) Perform software reset
5-18
$IDM(CHK)(cr) Read the module’s name
5-19
$IDF(CHK)(cr) Read the module’s firmware version and date
5-20
~IDONN(CHK)(cr)
Chang the module’s name
5-21
~IDWENN(CHK)(cr) Enable watch dog and set up timeout value
5-22
~IDWD(CHK)(cr) Disable watchdog
5-23
~IDWR(CHK)(cr) Read watchdog timeout value
5-24
~**(CHK)(cr) System stand by (Host ok!)
5-25
9
5-5.Set the module’s configuration
*The module must be reboot, When you set up module’s configuration after.
Command %IDNNTTBBDD(CHK)(cr)
Syntax
Description
% First leading code
ID Address of setting module from 00~FF(HEX)
NN New address of setting from 00~FF(HEX)
TT Analog input type setting
BB New baud rate setting
DD Data Format
CHK Checksum
(cr) Carriage return
Response !ID(CHK)(cr) Command valid
?ID(CHK)(cr) Command Invalid
5-6. (TT) Analog input type
5-7. (BB) Baud Rate Setting
Type Code 08 09 0A 0B 0C 0D
Voltage: ±10V ±5V ±2.5V ±1.25V ±650mV ±20mA
% of FSR
±100 % ±100 % ±100 % ±100 % ±100 % ±100 %
2’S
complem
ent
Fast
Mode
0000~8000~FFFF 0000~8000~FFFF 0000~8000~FFFF 0000~8000~FFFF 0000~8000~FFFF 0000~8000~FFFF
Normal
Mode
000000~800000~
FFFFFF
000000~800000~F
FFFFF
000000~800000~F
FFFFF
000000~800000~F
FFFFF
000000~800000~F
FFFFF
000000~800000~F
FFFFF
10
5-8. (DD) Data format setting
Example:
Send command:”%0003080600”,
New ID=03, Analog input= ±10V, Baud Rate=9600, Checksum=Disable DD=00
, Response:”!03”.
*If you turn on the system setting switch, the ID will become to “00”,
Then send command read analog input CH-0 voltage “#030”, Response:” >03+07.63178”=+7.63178V / Unit: Voltage.
Example: Send command:%00030B0501 Response:”!03, New ID=03, Analog input= ±1.25V, Baud Rate=4800, Checksum=Disable DD=01.
Then send command read analog input CH-0 FSR of percent “#030”, Response:” >03+063.3626” =63.3626 % / Unit: %.
Example: Send command:%0101080602 Response:”!01, New ID=01, Analog input= ±10V, Baud Rate=9600, Checksum=Disable, Normal mode, DD=02.
Then send command read analog input CH-0 FSR of percent “#010”, Response:” >017FF99F / Unit: 2’s complement 3 Byte 000000~800000~FFFFFF.
*TRPCOM utility is the utility for user to configure the module, the utility also with on-line RS485
modules scanning and searching function. You can find the utility in the TRP-C68 support CD
which is bundled in TRP-C68 standard package.
Bit 7 6 5 4 3 2
1 0
Function
Rejection
*0=60Hz
1=50Hz
Checksum
*0:Disable
1:Enable
Mode
*0=Normal
1=Fast
0 0 0
Engineer Unit Format
*00=Voltage
01=Percent
10=2’s Complement HEX Format
11
5-9. Read all analog input
Command #ID(CHK)(cr)
Syntax
Description
# First leading code
ID Address of setting module from 00~FF(HEX)
CHK Checksum
(cr) Carriage return
Response !IDData0~7(CHK)(cr) Channel 0,1,2,3,4,5,6,7 Data
?ID(CHK)(cr) Command Invalid
Example
Send command:”#01” Read the all analog input channels data. IF TT=08 the data will be show Response: “>01+02.667+00.006+00.002+00.000+00.000+00.000+00.000+00.000”…..Show the channel 0~7 voltage between -10V~+10V. / Unit: Voltage
Loading...
+ 23 hidden pages