191
Coding Right-hand Instructions Section 5-5
5-5 Coding Right-hand Instructions
Writing mnemonic code for ladder instructions is described in SECTION 4
Ladder-diagram Programming. Converting the information in the ladder dia-
gram 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 col-
umn 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 placed on the right side. If a con-
stant 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 instruction 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
function code, which will be necessary when inputting the instruction via the
Programming Console. Also be sure to designate the differentiated instruction
with the @ symbol.
Note The mnemonics of expansion instructions are followed by “(––)” as the func-
tion code to indicate that they must be assigned function codes by the user in
the instructions table before they can be used in programming. Refer to
page 118 for details.