![Define Instruments TEX-BAR Скачать руководство пользователя страница 24](http://html1.mh-extra.com/html/define-instruments/tex-bar/tex-bar_manual_2463887024.webp)
TEX-BAR-MAN-15V05 (0903)
Copyright © 2015 Defi ne Instruments
24
Custom ASCII Read/Write Examples
Example
Description
SR$
Read display value from all controllers, 50ms delay.
S15R$
Read display value from controller address 15, 50ms delay.
S3U40*
Read unformatted data in channel 4 from controller address 3, 2ms delay.
S2W2 –10000$
Write
–
10000 to the display register of controller address 2, 50ms delay.
SWT CHAN_1$
Write ASCII text string Chan_1 to channel 1 text register, 50ms delay.
16 Bit Unsigned
Address
Function
1
Alarm status (SP1=Bit 0,
SP2=Bit 1, SP3=Bit 2, SP4=Bit 3)
65–68
Hysteresis (SP1=65, SP2=66,
SP3 =67, SP4=68)
71–74
Make delay (SP1=71, SP2=72,
SP 3=73, SP4=74)
32 Bit Signed
Address
Function
2
Process display
12
Peak
13
Valley
6–9
Setpoint 1
–
4 (SP1=6, SP2=7,
SP3 =8, SP4=9)
34
D/A scale low value
36
D/A scale high value
Custom ASCII Registers
Controller Response -
Aft er the controller has completed a read or write instruction,
it responds by sending a carriage return/line feed (CR/LF) back to the host. If
the instruction was a read command, the CR/LF follows the last character in the
ASCII string. If it was a write command, CR/LF is the only response sent back.
The host must wait for this before sending further commands to the controller.
If the controller encounters an error, it will respond with a null (0x00) CR/LF.
A.2 - Modbus (RTU) mode
Modbus (RTU) is an industry standard RTU slave mode that allows connection to a
wide range of devices. Modbus registers are all holding registers, and should be ac-
cessed via function codes 3 and 6.