Set_outputs – Yaskawa FSP Amplifier FlexWorks User Manual

Page 171

Advertising
background image

Command Reference

171

SET_OUTPUTS

G

ROUP

Output

S

YNTAX

SET_OUTPUTS <output mask> <output state>

O

P

. C

ODE

107

M

ODES

Program, Immediate, Sequential

D

ESCRIPTION

Simultaneously sets a group of digital outputs to ON or

OFF.

Output mask

Decimal value of a bit string, in which
the digits define which outputs are set
and which are ignored. The rightmost
digit of the string is ignored, the next

corresponds to OUT 1 on pins CN1-25,
CN1-26, etc.

Setting Code

Ignore 0

Set 1

Range: 1 to 0x00FFFFFF

Serial 4 U V

S

YNTAX

A

RGUMENTS

Output state Decimal value. A bit string represents

the digital outputs to be set. The
rightmost digit is ignored, the next

corresponds to OUT 1 on pins CN1-25,
CN1-26, etc.
Range: 1 to 0x00FFFFFF

Serial 4 U V

E

XAMPLE

WAIT_VAR Position_actual_value >= 100
SET_OUTPUTS 6 4
END

E

XAMPLE

E

XPLANATION

When the position value equals or exceeds 100uu, digital

output 1 is set to OFF and digital output 2 to ON.
<Output mask> is 6 (0110) i.e., only outputs 1 and 2 can
be affected. <Output state> is 4 (0100) and determines

the value of the affected digital outputs.

S

EE

A

LSO

SET_OUTPUT

Advertising
This manual is related to the following products: