181
Programming Example Section 7-4
7-4-3 Example Program
The following ladder program will be used to demonstrate how to write a pro-
gram with the Programming Console. This program makes output IR 10000
flicker ON/OFF (one second ON, one second OFF) ten times after input
IR 00000 is turned ON.
The mnemonic list for the example program is shown in the following table.
The steps required to enter this program from a Programming Console are
described in 7-4-4 Programming Procedures.
Count input
Reset input
02000
END(01)
C00000000
02000
10000
T00102000
00000
00004
00007
00010
00014
00017
1
S
ON
OFF
Flicker output (10 counts)
Self-holding bit
1-second timer
2-second timer
10-count counter
TIM 001
#0010
CP
R
CNT 000
#0010
T00202000
TIM 002
#0020
T00202000
T00102000
02000
Start input
Address Instruction Data Programming example
procedures in 7-4-4
Programming Procedures
00000 LD 00000 (1) Self-holding bit
00001 OR 02000
00002 AND NOT C 000
00003 OUT 02000
00004 LD 02000 (2) 1-second timer
00005 AND NOT T 002
00006 TIM 001
#0010
00007 LD 02000 (3) 2-second timer
00008 AND NOT T 002
00009 TIM 002
#0020
00010 LD 02000 (4) 10-count counter
00011 AND T 001
00012 LD NOT 02000
00013 CNT 000
#0010