55
Programming Restrictions
Section 2-4
Error-related
Restrictions
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.
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.
Prohibiting Access to
FB Instance Areas
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
Note
Force-setting/resetting is enabled when the following EM banks are specified:
CS/CJ-series CPU Units Ver. 3.0 or Later, and NSJ Controllers
FQM1 Flexible Motion Controllers
FB
EN ENO
AAA BBB
D200
D100
0.0
LD P_On
++ AAA
MOV AAA BBB
10.0
Program
FB definition
Body
Instance name
Fatal error occurs here.
Function block instance
area
Initial value of
start address
Initial value
of size
Allowed data areas
Non-retained
H512
896
CIO, WR, HR, DM,
EM (See note.)
Retained
H1408
128
HR, DM, EM (See
note.)
Timer
T3072
1024
TIM
Counter
C3072
1024
CNT
CJ2H-CPU64(-EIP)/-CPU65(-EIP)
EM bank 3
CJ2H-CPU66(-EIP)
EM banks 6 to 9
CJ2H-CPU67(-EIP)
EM banks 7 to E
CJ2H-CPU68(-EIP)
EM banks 11 to 18
Function block instance
area
Initial value of
start address
Initial value
of size
Allowed data areas
Non-retained
H512
896
CIO, WR, HR, DM, EM
Retained
H1408
128
HR, DM, EM
Timer
T3072
1,024
TIM
Counter
C3072
1,024
CNT
FB Instance
Area
Default value
Applicable memory
areas
Start address
End address
Size
Non Retain
5000
5999
1000
CIO, WR, DM
Retain
None
Timers
T206
T255
50
TIM
Counters
C206
C255
50
CNT
Summary of Contents for CX-PROGRAMMER V8.1
Page 3: ...iv...
Page 5: ...vi...
Page 7: ......
Page 15: ...xvi...
Page 19: ...xx...
Page 25: ...xxvi Application Precautions 4...
Page 26: ...Part 1 Function Blocks...
Page 27: ......
Page 153: ...128 Procedures Section 3 2...
Page 154: ...Part 2 Structured Text ST...
Page 155: ......
Page 159: ...134 CX Programmer Specifications Section 4 2...
Page 205: ...180 Procedures Section 6 1...
Page 207: ...182 System defined external variables supported in function blocks Appendix A...
Page 229: ...204 Revision History...
Page 230: ......