Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual page 53

Function blocks
Table of Contents

Advertisement

Restrictions on Function Blocks
AT Setting Restrictions
(Unsupported Data Areas)
Direct Addressing of I/O
Memory in Instruction
Operands
I/O Variable Restrictions
(Unsupported Data Areas)
Interlock Restrictions
Differentiation
Instructions in Function
Block Definitions
38
• Instructions manipulating record positions (PUSH, FIFO, LIFO, SETR,
and GETR)
• FAILURE POINT DETECTION Instruction (FPD)
• Move Timer/Counter PV to Register Instruction (MOVRW)
Addresses in the following areas cannot be used for AT settings.
• Index Registers (neither indirect nor direct addressing is supported) and
Data Registers
Note Input the address directly, not the AT setting.
• Indirect addressing of DM or EM Area addresses (Neither binary-mode
nor BCD-mode indirect addressing is supported.)
• Addresses, not variables, can be directly input in Index Registers (both
indirect and direct addressing) and Data Registers.
The following values can be input in instruction operands:
Direct addressing: IR0 to IR15; Indirect addressing: ,IR0 to ,IR15; Con-
stant offset (example): +5,IR0; DR offset: DR0,IR0; Auto-increment:
,IR0++; Auto-decrement: --,IR0
• Direct addressing in instruction operands is not supported for any other
areas in I/O memory.
Addresses in the following data areas cannot be used as parameters for input
and output variables.
• Index Registers (neither indirect nor direct addressing is supported) and
Data Registers
• Indirect addressing of DM or EM Area addresses (Neither binary-mode
nor BCD-mode indirect addressing is supported.)
When a function block is called from an interlocked program section, the con-
tents of the function block definition will not be executed. The interlocked func-
tion block will behave just like an interlocked subroutine.
P_Off
IL
FB_BODY
FB
ILC
Interlocked
Interlock will not
affect instructions in
the function block
definition.
An instance will not be executed while its EN input variable is OFF, so the fol-
lowing precautions are essential when using a Differentiation Instruction in a
function block definition. (Differentiation Instructions include DIFU, DIFD, and
any instruction with an @ or % prefix.)
• As long as the instance's EN input variable is OFF, the execution condition
will retain its previous status (the last status when the EN input variable
was ON) and the Differentiation Instruction will not operate.
• When the instance's EN input variable goes ON, the present execution
condition status will not be compared to the last cycle's status. The
present execution condition will be compared to the last condition when
the EN input variable was ON, so the Differentiation Instruction will not
operate properly. (If the EN input variable remains ON, the Differentiation
Instruction will operate properly when the next rising edge or falling edge
occurs.)
Section 2-3

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cx-programmer 5.0Sysmac ws02-cxpc1-e-v50Cs1-hCj1-hCj1m

Table of Contents

Save PDF