Blink, Parameters, Error description – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 528: Example

Advertising
background image

Yaskawa Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

515

Blink

This function block will toggle the Output at the frequency specified at the input. If Frequency is set to 1.0, then
the output will be on for 500 msec and off for 500 msec. Note that the actual frequency may be affected by the
application scan rate in which this function block is placed.

Parameters

Parameter

Data
Type

Description

VAR_INPUT

Default

B

Enable

BOOL

The function will continue to execute while enable is
held high.

FALSE

V

Frequency

LREAL

The cycle rate in Hertz.

LREAL#0.0

VAR_OUTPUT

B

Valid

BOOL

Indicates if the function is operating

V

Output

BOOL

Toggled at the specified frequency when the function is enabled.

Error Description

The valid output will be high if the function is operating. If Enable is held high and the Frequency is not greater
than zero, the valid output will be low.

Example

Blink_1 was placed in a 10ms task so the expected output is 50ms on and 50ms off which corresponds to 5
cycles on, 5 cycles off.

Advertising