
43
CHAPTER 2 APPLICATION OF PROGRAMMING
2
2.
3
S
can T
im
e
S
tru
ct
ur
e
2.
3.
2
Ref
resh proces
sing
o
f i
npu
t/out
put
m
odules
or int
e
lligent
f
unct
ion m
odules
2.3.2
Refresh processing of input/output modules or intelligent
function modules
The CPU module performs the following before program operations.
• On/off data input from the input module or intelligent function module to the CPU module
• On/off data output from the CPU module to the output module or intelligent function module
For details on refreshing processing, refer to
2.3.3
Program operation
A main routine program repeatedly executes its operation from the step 0 to the END or FEND instruction. This
program is executed from the step 0 for every scan.
A main routine program can be divided to main routine and subroutine programs. A subroutine program is from a
pointer(P ) to the RET instruction, and is created between the FEND and END instructions. This program is executed
only when it is called by a subroutine program call instruction (such as CALL(P), FCALL(P)) from a main routine
program.
*1
Pointer numbers do not need to be specified in ascending order.
END/FEND
instructions
END/FEND
1 scan (After completion
of END processing,
an operation is repeated
starting from step 0.)
Step 0
Program
execution
END processing
Main routine program
Subroutine
program 1
Subroutine
program 2
Subroutine
program 3
Pointer*
1
Program A
Main routine program
Summary of Contents for L02CPU
Page 1: ......
Page 2: ......
Page 13: ...11 Memo ...
Page 78: ...76 Memo ...
Page 226: ...224 Memo ...
Page 318: ...316 To the next page ...
Page 320: ...318 To the next page ...
Page 322: ...320 To the next page ...
Page 324: ...322 To the next page ...
Page 326: ...324 To the next page ...
Page 335: ...333 Memo ...
Page 339: ......