2-93
IM 04L51B01-17EN
Commands and Responses
2
SLogicMath
Logic Math Expression (/MT)
Sets the logic math expression
Syntax
SLogicMath,p1,p2,p3
p1
Math number
p2
Expression on/off
Off
Not Use
DO
DO channel
SW
Internal switch
p3
Channel number
p4
Calculation expression (up to 120
alphanumeric characters, UTF-8)
Query
SLogicMath[,p1]?
Example Output the math result of expression
0001AND0002 as 0 or 1 to DO channel
number 0105. Use Logic math number 1.
SLogicMath,1,DO,0105,’0001AND0002’
Description
• You cannot use this command to configure settings
while recording is in progress.
• p3 can be set only for DO or SW with type set to
Manual.
• This command can be used when the math function (/
MT) is enabled.
SWConst
Variable Constant (/MT)
Sets the variable constant to be used in computation
Syntax
SWConst,p1,p2
p1
Variable constant number (1 to 100)
p2
Value (–9.999999E+29 to 9.999999E+30,
five significant digits)
Query
SWConst[,p1]?
Example Set variable constant number 12 to 1.0000E–
10.
SWConst,12,1.0000E-10
Description
• You can change the constant even during recording,
computing, and controlling.
• This command can be used when the math function (/
MT) is enabled.
2.4 Setting Commands