
Parker Hannifin S.p.A. - S.B.C. Division HPD N User’s Manual
60
PLC INSTRUCTIONS
LD Pa.y
load bit y of parameter Pa in the stack
LDN Pa,y
load inverted bit y of parameter Pa in the stack
OUT Pa,y
set bit y of parameter Pa to the value loaded in the stack
OUTN Pa,y
set bit y of parameter Pa to the stack value and invert it
SET Pa,y
if stack is at 1, set bit y of parameter Pa to 1
RES Pa,y
if stack is at 1, set bit y of parameter Pa to zero
AND Pa,y
the bit loaded into the stack assumes the result of the
logical AND operation between itself and bit y of
parameter Pa
ANDN Pa,y
the stack bit assumes the result of the logical AND between
itself and inverted bit y of parameter Pa
OR Pa,y
the bit loaded into the stack assumes the result of the OR
between itself and bit y of parameter Pa
ORN Pa,y
the stack bit assumes the result of the OR between itself
and inverted bit y of parameter Pa
ADD
Pa, Pb, Pc
if stack bit is at 1, parameter sum operation is executed,
therefore: Pc = Pa + Pb
SUB
Pa, Pb, Pc
if stack bit is at 1, subtraction operation is executed on
parameters, therefore: Pc = Pa - Pb
MUL
Pa, Pb, Pc
if stack bit is at 1, multiplication operation is executed on
parameters, therefore: Pc = Pa
⋅
Pb
DIV
Pa, Pb, Pc
if stack bit is at 1, division operation is executed on the
parameters, therefore: Pc = Pa / Pb
END
program
end
FIN
y, 0/1
fast scanning input
Pa.y
Pa.y
ADD
Pa Pb Pc
Pa.y
Pa.y
SET
Pa.y
END
Pa.y
Pa.y
SUB
Pa Pb Pc
RST
Pa.y
Pa.y
Pa.y
MUL
Pa Pb Pc
DIV
Pa Pb Pc
FIN
Pa.y
Содержание HPD2N
Страница 1: ...HPD N HPD2N HPD5N HPD8N HPD16N HPD20N HPD24N User s manual rev 8 5 November 2004 software rel 41...
Страница 3: ......
Страница 4: ......
Страница 121: ...Parker Hannifin S p A S B C Division HPD N User s Manual 118...
Страница 125: ......