Set single setpoint, all values, Read setpoint value, Read setpoint hysteresis – Rice Lake Allen-Bradley Remote I/O User Manual
Page 21
Block Transfer Commands
17
Set Single Setpoint, All Values
Command: 319, 0x13F
Block Write: 10 words
Parameter: Setpoint number
Value: Values as required
Block Read: 2 words
Return Status: Batch
Return Value: None
Command 319 sets the target, hysteresis/bandwidth
and preact values for the specified setpoint in
floating-point format. This command is only valid if
the setpoint is enabled and requires a target value.
The structure of the block write command is as
follows:
Word 0:
Command number
Word 1:
Setpoint number
Word 2:
Setpoint kind
Word 3:
Reserved/not used
Words 4–5:
Target value
Words 6–7:
Hysteresis or band value
Words 8–9:
Preact value
The value sent in words 6 and 7 is interpreted as
hysteresis or band value based on the TRIP setting of
the setpoint. If the setpoint requires neither a
hysteresis nor a band value, this value is ignored and
only the target value is set. The preact value is ignored
if preact is not enabled for the setpoint.
Table 4-6 lists the values specified for the setpoint
kind in word 2.
Table 4-6. Table nt Kind Values
Value (Hex)
Setpoint Kind
Supported for
Indicator
520
820i
/
920i
0000
OFF
0001
GROSS
0002
NET
0003
–GROSS (Negative gross)
0004
–NET (Negative net)
0005
ACCUM (Accumulator)
0006
ROC (Rate of change)
0007
+REL (Positive relative)
0008
–REL (Negative relative)
0009
%REL (Percent relative)
000A
RESREL (Result relative)
000B
PAUSE
000C
DELAY
000D
WAITSS (Wait for standstill)
000E
COUNTER
000F
AUTOJOG
0010
COZ (Center of zero)
0011
INMOTON (In motion)
0012
INRANGE (In range)
0013
BATCHPR (Batch process)
0014
TIMER
0015
CONCUR
0016
DIGIN (Digital input)
0017
AVG (Average)
0018
TOD (Time of day)
0019
DELTA (Delta weight)
001A
CHKWEI (Checkweigher)
001B
PLSCNT (Pulse counter)
001C
PLSRAT (Pulse rate)
001D
ALWAYS
001E
NEVER
Read Setpoint Value
Command: 320, 0x140
Block Write: 2 words
Parameter: Setpoint number
Value: None
Block Read: 4 words
Return Status: Batch
Return Value: Target value
Command 320 returns the target value for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a target value.
Read Setpoint Hysteresis
Command: 321, 0x141
Block Write: 2 words
Parameter: Setpoint number
Value: None
Block Read: 4 words
Return Status: Batch
Return Value: Hysteresis value
Command 321 returns the hysteresis value for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a hysteresis value.
Value (Hex)
Setpoint Kind
Supported for
Indicator
520
820i
/
920i
Table 4-6. Table nt Kind Values (Continued)