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

Function blocks
Table of Contents

Advertisement

Instance Specifications
Operation when the
Instance Is Executed
36
The system calls a function block when the input to the function block's EN
input variable is ON. When the function block is called, the system generates
the instance's variables and copies the algorithm registered in the function
block. The instance is then executed.
Pulse_2sON_1sOFF
1.0
P_On
CLOCK PULSE
EN
ENO
&20
ON_TIME
&10
OFF_TIME
2. The system generates the instance
variables and copies the algorithm.
FB instance (Pulse_2sON_1sOFF)
Usage
Name
Internal
200-100ms_PULSE_tim_a
Internal
200-100ms_PULSE_tim_b
Input
200-100ms_PULSE_ON_TIME
200-100ms_PULSE_OFF_TIME
Input
Algorithm (Image)
Pulse_2sON_1sOFF tim_b
Pulse_2sON_1sOFF tim_a
Pulse_2sON_1sOFF tim_a
Pulse_2sON_1sOFF tim_b
Pulse_2sON_1sOFF ENO
The order of execution is as follows:
1. Read data from parameters to input variables.
2. Execute the algorithm.
3. Write data from output variables to parameters.
Input to EN is ON.
1. Read values from parameters
Parameters
to input variables.
2. Execute the algorithm.
3. Write values from output
variables to parameters.
Data cannot be exchanged with parameters in the algorithm itself.
In addition, if an output variable is not changed by the execution of the algo-
rithm, the output parameter will retain its previous value.
Algorithm (Body)
tim_b
1. The FB is called.
tim_a
Value
---
---
&20
&10
Pulse_2sON_1sOFF OFF_TIME
Pulse_2sON_1sOFF ON_TIME
Parameters
Section 2-2
TIMX tim_a OFF_TIME
TIMX tim_b ON_TIME
ENO
3. The contents of the
instance are executed.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents