
29
7-13. Read one or multi channel analog input data
Command
ID 03 00 NN 00 CN (CRC)
ID 04 00 NN 00 CN (CRC)
Syntax
Description
ID
Address of setting module 1~247
03 or 04
Function Code
00 NN
Start channel from NN=00~07
00 CN
How many channel want to read CN=1~8
Response
ID 03/04 BC ST DATA (CRC)
ID 03 or 04 ……Module command Line
BC: Byte Counter
ST:01…when Voltage or % of FSR is Positive
ST:00…. when Voltage or % of FSR is Negative
ST:02…..when fast mode and engineer mode is 2byte
ST:03…..when normal mode and engineer mode is 3byte
DATA: Analog Input value
ID 83 ER (CRC)
ID 83 :Function Code
ER=00 Syntax error
ER=01 Data Format error
ER=02 Start channel error
ER=03 I/O out of range
Example:
TT=08, DF:00
Send command “1 3 0 0 0 1”…Read channel 0 voltage
Response:” 01 03 05
10
00 87 89 65 “.......+8.78965V.
*When voltage or % of FSR mode the data length is 5 byte, 1
st
byte is
10: Positive,00: Negative
Example:
When DF is 02 (Engineer and normal mode) ,Byte Counter is 3 bytes .
TT=08, DF:02 DF: fast mode display 3 byte,
Send command “01 03 00 00 01 “…Read channel 0 engineer mode :0000~8000~FFF /HEX=
-10V~0V~+10V
Response:” 01 03 03
B7 BD DB
“....10: Engineer mode AC 1A =about +4.3V
When DF is 22 (Engineer And fast Mode)..Byte Counter Is 2 Bytes
TT=08, DF:22 DF: fast mode display 2 byte,
Send command “01 03 00 00 01 “…Read channel 0 engineer mode :0000~8000~FFF /HEX=
-10V~0V~+10V
Response:” 01 03 02
AC 1A
“....10: Engineer mode AC 1A =about +3.3V
Example:
TT=08, DF:02 DF: normal mode display 3 byte, Engineer Mode
Send command “01 03 00 00 01 “…Read channel 0 engineer mode :000000~800000~FFFFF