122
5-6 Coding Right-hand Instructions
Writing
mnemonic code for ladder instructions is
described in
Section
4 Writing
and Inputting the Program. Converting the information in the ladder diagram
symbol for all other instructions follows the same pattern, as described below,
and is not specified for each instruction individually.
The
first word of any instruction defines the instruction and provides any defin
-
ers. If the instruction requires only a signal bit operand with no definer, the bit
operand
is also placed on the same line as the mnemonic. All other operands are
placed
on lines after the instruction line, one operand per line and in the same
order as they appear in the ladder symbol for the instruction.
The
address and
instruction columns of the mnemonic code table are filled in for
the
instruction word only
. For all other lines, the left two columns are left blank. If
the
instruction requires no definer or bit operand, the data column is
left blank for
first
line.
It is a good idea to cross through any blank data column spaces (for all
instruction
words that do not require data) so that the data column can be quickly
scanned to see if any addresses have been left out.
If
an IR or SR
address is used in the data column, the left side of the column is left
blank.
If any other data area is used, the data area abbreviation is placed on the
left
side and the address is place on the right side.
If a constant to be input, the
number
symbol (#) is placed
on the left side of the data column and the number
to
be input is placed on the right
side. Any numbers input as definers in the in
-
struction
word do not require the number symbol on the
right side. TC bits, once
defined as a timer or counter, take a TIM (timer) or CNT (counter) prefix.
When
coding an instruction that has a function code, be sure to write in the func
-
tion code, which will be necessary when inputting the instruction via the Pro-
gramming
Console. Also be sure to designate the
dif
ferentiated instruction with
the @ symbol.
Coding Right-hand Instructions Section 5-6