Out (output), Function – Yaskawa SMC–4000 User Manual

Page 182

Advertising
background image

172

SMC–4000 User Manual

@OUT (Output)

[Function]

DESCRIPTION:

@OUT returns the status of the digital output number or variable given in square brackets. Note that the
@OUT command is a function, which means that it does not follow the convention of the commands, and
does not require the underscore when used as an operand.

ARGUMENTS: @OUT [n]

where

n is an integer corresponding to a specific output on the controller. The first output on the controller is denoted
as output 1. An

SMC–4000

controller has 8 digital outputs plus applicable I/O connected by Modbus.

*Note: When using Modbus devices, the I/O points of the modbus devices are calculated using the

following formula:

n = (SlaveAddress*1000) + (HandleNum*1000) + ((Module-1)*4) + (Bitnum-1)

Slave Address is used when the ModBus device has slave devices connected to it and specified as Addresses
0 to 255.

HandleNum is the handle specifier from A to H (1 - 8).

Module is the position of the module in the rack from 1 to 16.

BitNum is the I/O point in the module from 1 to 4.

USAGE:

EXAMPLES:

While Moving

Yes

Minimum n value

1

In a Program

Yes

Maximum n value

8

Not in a program

Yes

Default Value

---

Can be Interrogated

No

Default Format

---

Used as an Operand

Yes

#TEST

Program TEST

VAR1=3

Set variable

MG @OUT[VAR1]

Display only the whole number portion of

VAR1

EN

End of program

Advertising