23
5 Instructions of the PLC Program
:nnn
: program module identifier (:000-:199).
There are four types of module:
$"
1. system modules (:000 and :001).
$"
2. modules of optional uses (:002-:199 except for :005-:012 and :050-:059).
$"
3. subroutines provided by the manufacturer (to be called by the PLC);
:052 = sending the content of OP to the spindle analog output;
:053 = sending the analog signal pertaining to the programmed SPIN
(modified by OVERRIDE) to the main drive.
:054 - :058 analog signal output to an arbitrary axis or the spindle output
$"
4. modules to be called from the part program (:005-:019).
Gnnn
: unconditional jump to MODULE :nnn.
Cnnn
: unconditional call of MODULE :nnn.
Innn
: start of a conditional check of the state of an input line.
$"
octal I000-I377 (MACHINE
$$$$
PLC)
conditional check commenced with an input FLAG
$"
octal I400-I477 (NC
$$$$
PLC).
The condition test is bifurcated: true when the state of the input line is "1", false
when the state of the input line is "0".
Innn: "true" E, "false" Z or Innn: "true" Z.
Pnnn
: direct test of INPUT LINE. During execution of the instruction, the input port is read
in directly, and the desired bit is tested. This instruction is particularly useful for
serving activities that require fast interventions. The instruction is valid for physical
input lines only; it is has no meaning for input flags. Its format is identical with that
of instruction Innn.
Vnnn
: start of a conditional test by testing the change of an input line.
$"
octal V000-V377 (MACHINE
$$$$
PLC):
Start of a conditional test by testing the change of an input FLAG.
$"
octal V400-V777 (NC
$$$$
PLC):
The condition test is bifurcated: true when the state of the input line has been
changed, false when the state of the input line remains unchanged.
Conditional test Vnnn yields a correct result in module :001 only because the change
is interpreted with reference to the state existing in the previous 20 ms.
Ynnn
: start of a conditional test for an output line:
$"
octal Y000-Y377 (PLC
$$$$
MACHINE)
Start of conditional test of an output flag:
$"
octal Y400-Y777 (NC
$$$$
PLC).
The conditional testis bifurcated: true when the state of the output line is "1" (the line
is active), false when the state of the output line is "0".
Fnnn
: start of conditional test for the n-th bit of general-purpose Fnn registers. F000-997
(PLC)
%$
%$
%$
%$
(PLC). The conditional test is bifurcated: true when the state of the flag
under test is "1", false when its state is "0".