58
tion condition of block c with the execution condition resulting from the nor-
mally closed condition assigned IR 00003. The rest of the diagram can be
coded with OR, AND, and AND NOT instructions. The logical flow for this and
the resulting code are shown below.
00000 00001
00500
00002 00003
01000 01001
00004 00005
00500
00006
Block c
Block bBlock a
OR LD
LD 00000
AND 00001
OR 00500
AND 00002
AND NOT 00003
LD 01000
AND 01001
LD 00006
LD 00004
AND 00005
AND LD
Address Instruction Operands
00000 LD 00000
00001 AND 00001
00002 LD 01000
00003 AND 01001
00004 OR LD --
00005 OR 00500
00006 AND 00002
00007 AND NOT 00003
00008 LD 00004
00009 AND 00005
00010 OR 00006
00011 AND LD --
00012 OUT 00500
4-3-7 Coding Multiple Right-hand Instructions
If there is more than one right-hand instruction executed with the same exe-
cution condition, they are coded consecutively following the last condition on
the instruction line. In the following example, the last instruction line contains
one more condition that corresponds to an AND with IR 00004.
00000 00003
00001
0000400002
HR 0000
HR
0001
00500
00506
Address Instruction Operands
00000 LD 00000
00001 OR 00001
00002 OR 00002
00003 OR HR 0000
00004 AND 00003
00005 OUT HR 0001
00006 OUT 00500
00007 AND 00004
00008 OUT 00506
4-4 The Programming Console
Once a program has been written, it must be input into the PC. This can be
done in graphic (ladder diagram) form using a GPC,a FIT, or LSS. The most
common way of inputting a program, however, is through a Programming
Console using mnemonic code. This and the next section describe the Pro-
The Programming Console Section 4-4