Introduction to pulse output instructions

The high-speed counter and pulse output instructions can be used with the following FP Series PLCs: FP0, FP-e, FPS, FP-X, FP0R.

NOTE

FP-X, Relay types: The pulse output function is only available if the pulse I/O cassette (AFPX-PLS) has been installed.

Typical applications

Use the high-speed counter instructions to count input pulses from sensors or encoders, and to turn outputs to TRUE or FALSE once a specified target value has been reached.

When used with a motor driver, the pulse output instructions enable typical positioning operations such as trapezoidal control, home return, and JOG operation.

Specifications

The number of channels for the built-in high-speed counter and for pulse output, the counting range, the input and output numbers, as well as performance specifications differ depending on the PLC type. For details, please refer to the corresponding hardware manual.

Required system register settings

When using a high-speed counter instruction: Select the high-speed counter input for the desired channel in the system registers.

Position control mode

The position control mode is specified by means of the variables used with the positioning command.

Pulse output methods

The pulse output method is specified by means of the variables used with the positioning command.

Writing control codes

Control codes are used to perform special counter operations.

Writing and reading the elapsed value

The elapsed value is stored as a double word in the special data registers.

Control flags

The high-speed counter and pulse output status is stored in special internal flags. To access the special internal flags, use the PLC-independent system variables.

When a high-speed counter instruction is executed, the high-speed counter control flag (e.g. sys_bIsHscChannel0ControlActive) for the channel used turns to TRUE. No other high-speed counter instruction using the same channel can be executed as long as the control flag is TRUE.

When a pulse output instruction is executed and pulses are being output, the pulse output control flag (e.g. sys_bIsPulseChannel0Active) of the corresponding channel is TRUE. No other pulse output instruction can be executed as long as this flag is TRUE.

System variables

To access special data registers and special internal flags, use the PLC-independent system variables.

Related topics:

Stopping pulse output

Related topics:

Modified on: 2022-03-02Feedback on this pagePanasonic hotline