Panasonic FP Series Programming Manual page 1029

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Pulse output instructions
When this instruction is executed, the "Output control active" flag (e.g.
sys_bIsPulseChannel0ControlActive) for the channel used turns to TRUE. No
other high-speed counter instruction with output control (F166_PulseOutput_Set
or F167_PulseOutput_Reset) using the same channel can be executed as long
as this flag is TRUE.
This instruction is available for all pulse output instructions except
F173_PulseOutput_PWM (see page 1066) and can be executed before or after
execution of a pulse output instruction.
The duplicate use of an external output relay in other instructions (OUT, SET,
RST, KEEP and other F instructions) is not verified by FPWIN Pro and will not be
detected.
To set a PLC output to FALSE that was previously set to TRUE by this instruction,
use an RST or MOVE instruction.
To cancel execution of a pulse output instruction, set bit 2 of the data register
storing the pulse output control code (sys_wHscOrPulseControlCode) to TRUE.
The pulse output control flag will then change to FALSE. To reenable execution
of the instruction, reset bit 2 to FALSE. However, pulse output will continue.
If both the main program and the interrupt program contain code for the same
channel, make sure both are not executed simultaneously.
We strongly recommend that you incorporate a forced stop (see page 1021)
option in your positioning program.
The status of the high-speed counter control flag or pulse output control flag may
change while a scan is being carried out. For example, if the flag is used more
than once as an input condition, different statuses may exist within one scan. To
ensure proper execution of the program, the status of the special internal relay
should be copied to a variable at the beginning of the program.
PLC types Availability of F166_PulseOutput_Set (see page 1322)
Data types
Variable
n_diPulseOutputChannel
s_diTargetValue
d_Y
Operands
For
n_diPulseOutputChannel
s_diTargetValue
d_Y
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
1028
Data type
Function
DINT
Pulse output channel:
0–3
DINT
specify a 32-bit data value for the target value within the following
range:
-2147483467–+2147483648
BOOL
output which turns to TRUE when the elapsed value matches the
target value: Y0–Y1F
Relay
-
-
-
-
DWX
DWY
DWR
-
-
Y
-
-
Set
If
ON
 channel number or values of the data table are outside the
permissible range
ON
 pulse output has not been set in the system registers
T/C
Register
-
-
-
-
DSV
DEV
DDT
-
-
-
-
-
Constant
-
dec. or hex.
-
-
-
-

Advertisement

Table of Contents
loading

Table of Contents