2-28
IM 04L51B01-17EN
SAlarmIO
Alarm
Sets the alarm for an AI, DI, or PI channel.
Do Not Set Alarms
Syntax
SAlarmIO,p1,p2,p3
p1
Channel number
p2
Alarm number (1 to 4)
p3
Alarm on or off (Off)
Do Not Output Alarms
Syntax
SAlarmIO,p1,p2,p3,p4,p5,p6,p7
p1
Channel number
p2
Alarm number (1 to 4)
p3
Alarm on or off (On)
P4
Alarm type (H, L, DH, DL, RH, RL, TH, TL)
For a channel set to Log scale (/LG) (if p4
of SRangeAI is LogT1, LogT2, or LogT3),
p4 is H, L, TH, or TL.
p5
Value
For a channel set to Log scale (/LG) (if p4
of SRangeAI is LogT1, LogT2, or LogT3),
specify p5 using exponential notation (e.g.
1.23E10, where the number of digits of
the mantissa is as specified by p8 of the
SRangeAI command).
p6
Detection (Off, On)
p7
Output (Off)
Output Alarms
Syntax
SAlarmIO,p1,p2,p3,p4,p5,p6,p7,p8
p1
Channel number
p2
Alarm number (1 to 4)
p3
Alarm on or off (On)
P4
Alarm type (H, L, DH, DL, RH, RL, TH, TL)
For a channel set to Log scale (/LG) (if p4
of SRangeAI is LogT1, LogT2, or LogT3),
p4 is H, L, TH, or TL.
p5
Value
For a channel set to Log scale (/LG) (if p4
of SRangeAI is LogT1, LogT2, or LogT3),
specify p5 using exponential notation (e.g.
1.23E10, where the number of digits of
the mantissa is as specified by p8 of the
SRangeAI command).
p6
Detection (Off, On)
p7
Output
DO Output to a relay (DO
channel)
SW Output to an internal switch
p8
Number
If p7=DO Relay (DO channel)
number
If p7=SW Internal switch number
(001 to 100)
Query
SAlarmIO[,p1[,p2]]?
Example Set a high limit alarm (H) on alarm number 2 of
channel 0001. Set the alarm value to 1.8000V.
Use the alarm detection function. When an
alarm occurs, output to the relay (DO channel)
at number 0205.
SAlarmIO,0001,2,On,H,18000,On,DO,
0205
Description
• You cannot set this on a “Skip” channel.
• If p3=Off, you cannot set p4 or subsequent
parameters.
• If p7=Off, you cannot set p8.
• For the alarm values of p5, use the values in the
following table.
Channel
Type
Input
Type
Calculation
Type
Alarm Type
H, L,
TH, TL
RH, RL DH, DL
AI channel
Volt,
GS,
TC,
RTD
Off
(1) (3)
Delta
(1) (3) (5)
Scale
(2) (4)
Sqrt
(2) (4)
LogT1
LogT2
LogT3
(6)
DI Off
0, 1 1
Delta
(1) (3) (5)
Scale
(2) (4)
DI channel
DI
Same as the DI input of AI channels
Pulse
Off 0 -
999999
1 -
999999
Off
PI channel
Pulse Off
(1) (3)
Delta
(1) (3) (5)
Scale
(2) (4)
(1) Within the measurement range
(2) –5% to 105% of the scale but within –999999 to
999999 excluding the decimal point
(3) 1 digit to (measurement upper limit – measurement
lower limit)
(4) 1 digit to (scale upper limit – scale lower limit) but
within 1 to 999999 excluding the decimal point
(5) Within the difference measurement range
(6) Log scale range that corresponds to -5% to 105% of
the span
• You cannot set DO channels or internal switches
whose output type is set to Manual as output
destination numbers.
•
You cannot set DI channels when the measurement
mode is set to high speed.
SAlmHysIO
Alarm Hysteresis
Sets the alarm hysteresis for an AI, DI, or PI channel.
Syntax
SAlmHysIO,p1,p2,p3
p1
Channel number
p2
Alarm number (1 to 4)
p3
Hysteresis
Alarm Type Hysteresis Range
H, L, DH, DL 0.0% to 5.0% of the span or
scale width
However, this is fixed to 0
for DI channels.
Delta 0 to 5.0% of the measurement
range
Linear scaling,
Square root
0 to 100000
Log scale
(/LG)
Fixed to 0.
2.4 Setting Commands