SERIAL COMMANDS FOR PAX SOFTWARE
(CSR) Control Status Register
The Control Status Register is used to both directly control the meter ’s
outputs (setpoints and analog output), and interrogate the state of the setpoint
outputs. The register is bit mapped with each bit position within the register
assigned to a particular control function. The control function are invoked by
writing to each bit position. The bit position definitions are:
bit 0: Setpoint 1 Output Status
0 = output off
1 = output on
bit 1: Setpoint 2 Output Status
Examples:
1. Set manual mode, turn all setpoints off:
7 6 5 4 3 2 1 0:bit location
VJ<30>* or VJ0*        ASCII 0 = 0 0 1 1 0 0 0 0 or <30>
V is command write, J is CSR and * is terminator.
2. Turn SP1, SP3 outputs on and SP2, SP4 outputs off:
7 6 5 4 3 2 1 0:bit location
VJ<35>* or VJ5*        ASCII 5 = 0 0 1 1 0 1 0 1 or <35>
0 = output off
1 = output on
bit 2: Setpoint 3 Output Status
0 = output off
3. Select Automatic mode:
VJ<40>* or VJ@*
7 6 5 4 3 2 1 0:bit location
ASCII @ = 0 1 0 0 0 0 0 0 or <40>
Output Signal* *Due to the absolute accuracy
I (mA)
rating and resolution of the output
V (V)
values. The output signal
corresponds to the range selected
(20 mA or 10 V).
1 = output on
bit 3: Setpoint 4 Output Status
0 = output off
1 = output on
bit 4: Manual Mode
0 = automatic mode
1 = manual mode
bit 5: Always stays 0, even if 1 is sent.
bit 6: Sensor Status (PAXT only)
0 = sensor normal
1 = sensor fail
bit 7: Always stays 0, even if 1 is sent.
Although the register is bit mapped starting with bit 7, HEX < > characters
are sent in the command string. Bits 7 and 5 always stay a zero, even if a “1” is
sent. This allows ASCII characters to be used with terminals that may not have
extended character capabilities.
Writing a “1” to bit 4 of CSR selects manual mode. In this mode, the setpoint
outputs are defined by the values written to the bits b0, b1, b2, b3; and the
analog output is defined by the value written to the AOR. Internal control of
these outputs is then overridden.
In automatic mode, the setpoint outputs can only be reset off. Writing to the
setpoint output bits of the CSR has the same effect as a Reset command (R). The
contents of the CSR may be read to interrogate the state of the setpoint outputs
and to check the status of the temperature sensor (PAXT only).
Command Response Time
The meter can only receive data or transmit data at any one time (half-duplex
operation). The meter ignores commands while transmitting data, but instead
uses RXD as a busy signal. When sending commands and data to the meter, a
delay must be imposed before sending another command. This allows enough
time for the meter to process the command and prepare for the next command.
Note: Avoid writing values <0A> (LF), <0D> (CR), <24> ($) and <2E> (*)
to the CSR. These values are interpreted by the meter as end of command
control codes and will prematurely end the write operation.
(AOR) Analog Output Register
The Analog Output Register controls the analog output of the meter. The
manual mode must first be engaged by setting bit 4 of the Control Status
Register. The range of values of this register is 0 to 4095, which corresponds to
0 mA, 0 V and 20 mA, 10 V; respectively. The table lists correspondence of the
output signal with the register value.
Register Value
0 0.000 0.000 card, the actual output signal may
1 0.005 0.0025 differ 0.15% FS from the table
2047 10.000 5.000
4094 19.995 9.9975
4095 20.000 10.000
Writing to this register while the meter is in the manual mode causes the
output signal to update immediately. While in the automatic mode, this register
may be written to, but the output will not update until the meter is placed in
manual mode.
Examples:
1. Set output to full scale:
VI4095*
2. Set output to zero scale:
VI0*
At the start of the time interval t 1 , the computer program prints or writes the
string to the com port, thus initiating a transmission. During t 1 , the command
characters are under transmission and at the end of this period, the command
terminating character (*) is received by the meter. The time duration of t 1 is
dependent on the number of characters and baud rate of the channel.
t 1 = (10 * # of characters) / baud rate
First
Command
Character
Terminator
of Reply
Received
NOREPLYFROMMETER
Command Meter
String Response
Transmission Time
Ready t 1 t 2 Ready
RESPONSE FROM METER
Ready t 1 t 2 t 3
Reply
Transmission
Time
Timing Diagram Figure
Ready
27
At the start of time interval t 2 , the meter starts the interpretation of the
command and when complete, performs the command function. This time
interval t 2 varies from 2 msec to 50 msec. If no response from the meter is
expected, the meter is ready to accept another command.
If the meter is to reply with data, the time interval t 2 is controlled by the use
of the command terminating character. The standard command line terminating
character is ‘*’. This terminating character results in a response time window of
50 msec minimum and 100 msec maximum. This allows sufficient time for the
release of the sending driver on the RS485 bus. Terminating the command line
with ‘$’ results in a response time window (t 2 ) of 2 msec minimum and 50 msec
maximum. The faster response time of this terminating character requires that
sending drivers release within 2 msec after the terminating character is received.
At the beginning of time interval t 3 , the meter responds with the first
character of the reply. As with t 1 , the time duration of t 3 is dependent on the
number of characters and baud rate of the channel. t 3 = (10 * # of characters) /
baud rate. At the end of t 3 , the meter is ready to receive the next command.
The maximum serial throughput of the meter is limited to the sum of the
times t 1 , t 2 and t 3 .
相关PDF资料
PB-1583-TF BOX ABS 4.37X3.12X2" BK 1=10PCS
PB-1583 BOX ABS 4.37X3.12X2" BK 1=10PCS
PBS-11273 BOX ABS 6.30" X 3.75" X 1.41" BK
PBS-11275 BOX ABS 6.30" X 3.75" X 1.41" BK
PBS-11294-G BOX 5.62" X 3.25" X 1.5" GRAY
PBS-11327-B BOX 5.62" X 3.25" X 1.5" BLACK
PBS-11532-B BOX 4.37" X 3.25" X 1.52" BLACK
PBS-12631AV2G SWITCH PUSHBUTTON SPDT 6A 125V
相关代理商/技术参数
PAXTM110 制造商:Red Lion Controls 功能描述:TIMER, FIELD UPGRADEABLE GREEN DC 制造商:Red Lion Controls 功能描述:DC TIMER FIELD GREEN
PAXUSB00 制造商:Red Lion Controls 功能描述:USB PROGRAMMING CARD FOR PAX SERIES 制造商:Red Lion Controls 功能描述:USB OPTION CARD
PAY23015A12 功能描述:硬公制连接器 LOCKING PIN ASSEMBLY RoHS:否 制造商:TE Connectivity / AMP 系列:Z-Pack 产品类型:Receptacles 排数:5 位置/触点数量:110 安装角:Right 端接类型:Pin 外壳材料:Polyester 触点材料:Phosphor Bronze 触点电镀:Gold 类型:
PAY23015A1A1 功能描述:硬公制连接器 GRIP FINGER RoHS:否 制造商:TE Connectivity / AMP 系列:Z-Pack 产品类型:Receptacles 排数:5 位置/触点数量:110 安装角:Right 端接类型:Pin 外壳材料:Polyester 触点材料:Phosphor Bronze 触点电镀:Gold 类型:
PAY245A10 功能描述:手工工具 HM2 CONTACT EXTR TOOL-LONG PINS RoHS:否 制造商:Molex 产品:Extraction Tools 类型: 描述/功能:Extraction tool
PAY245A106 功能描述:手工工具 RoHS:否 制造商:Molex 产品:Extraction Tools 类型: 描述/功能:Extraction tool
PAY245A11 功能描述:手工工具 HM2 CONTACT EXTR TOOL-SHORT PINS RoHS:否 制造商:Molex 产品:Extraction Tools 类型: 描述/功能:Extraction tool
PAY245A112 功能描述:手工工具 INSERT BLOCK RoHS:否 制造商:Molex 产品:Extraction Tools 类型: 描述/功能:Extraction tool