Omron CX-PROGRAMMER V8.1 Operation Manual page 80

Function blocks/ structured text
Table of Contents

Advertisement

Programming Restrictions
Error-related
Restrictions
Prohibiting Access to
FB Instance Areas
Note
If a fatal error occurs in the CPU Unit while a function block definition is being
executed, ladder program execution will stop at the point where the error
occurred.
Program
Instance name
0.0
FB
EN
ENO
D100
D200
AAA
BBB
In this case, the MOV AAA BBB instruction will not be executed and output
variable D200 will retain the same value that it had before the function block
was executed.
To use a function block, the system requires memory areas to store the
instance's internal variables, input variables, output variables, and input-out-
put variables.
CJ2-series CPU Units
Function block instance
area
Non-retained
Retained
Timer
Counter
Force-setting/resetting is enabled when the following EM banks are specified:
CJ2H-CPU64(-EIP)/-CPU65(-EIP)
CJ2H-CPU66(-EIP)
CJ2H-CPU67(-EIP)
CJ2H-CPU68(-EIP)
CS/CJ-series CPU Units Ver. 3.0 or Later, and NSJ Controllers
Function block instance
area
Non-retained
Retained
Timer
Counter
FQM1 Flexible Motion Controllers
FB Instance
Area
Start address
Non Retain
5000
Retain
None
Timers
T206
Counters
C206
FB definition
Body
LD P_On
10.0
++ AAA
Fatal error occurs here.
MOV AAA BBB
Initial value of
Initial value
start address
of size
H512
896
H1408
128
T3072
1024
C3072
1024
EM bank 3
EM banks 6 to 9
EM banks 7 to E
EM banks 11 to 18
Initial value of
Initial value
start address
of size
H512
896
H1408
128
T3072
1,024
C3072
1,024
Default value
End address
Size
5999
1000
T255
50
C255
50
Section 2-4
Allowed data areas
CIO, WR, HR, DM,
EM (See note.)
HR, DM, EM (See
note.)
TIM
CNT
Allowed data areas
CIO, WR, HR, DM, EM
HR, DM, EM
TIM
CNT
Applicable memory
areas
CIO, WR, DM
TIM
CNT
55

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-PROGRAMMER V8.1 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents

Save PDF