4-3SectionProgramming Example
121
4-3-2 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 01000
flicker ON/OFF (one second ON, one second OFF) ten times after input
IR 00000 is turned ON.
Count input
Reset input
20000
END(01)
C00000000
20000
01000
T00120000
00000
00004
00007
00010
00014
00017
1
S
ON
OFF
Self-holding bit
1-second timer
2-second timer
10-count counter
Flicker output (10 counts)
TIM 001
#0010
CP
R
CNT 000
#0010
T00220000
TIM 002
#0020
T00220000
T00120000
20000
Start input
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 4-3-3 Programming Procedures.
Address Instruction Data Programming example
procedures in 4-3-3
Programming Procedures
00000 LD 00000
(1) Self-holding bit
00001 OR 20000