Ob[n] - output bits array – ElmoMC SimplIQ Command Reference User Manual

Page 111

Advertising
background image

OB[N] - Output Bits Array

Purpose:
Sets and resets an output bit. The OB[N] command only sets a digital output that is
defined by OL[N] as a general purpose output.
ƒ

OB[N] for N=1…6 returns the value of digital output (N), if digital output N is
defined as general purpose output. Otherwise, it returns 0.

ƒ

OB[10…15] are reserved.

ƒ

If at least one of the digital outputs is mapped to the Amplifier OK function, OB[7]
returns 1 if the drive is ready (MO=1, or MO=0 and no exception such as under-
voltage prevents MO=1), or 0 if the drive is not ready. If none of the digital outputs is
mapped to the Amplifier OK function, OB[7] returns 0.

ƒ

If at least one of the digital outputs is mapped to the Brake function, OB[8] returns 1
if the brake is engaged, or 0 if the brake is released. If none of the digital outputs is
mapped to the Brake function, OB[8] returns 0.

ƒ

If at least one of the digital outputs is mapped to the Motor enable/disable function,
OB[9] returns 1 if the MO=1, or 0 if the MO=0. If none of the digital outputs is
mapped to the Motor enable/disable function, OB[9] returns 0.

ƒ

For unused bits (N=[10…15]), OB[N] returns 0.

Notes:

ƒ

Each of Elmo’s SimplIQ drives supports a different number of digital outputs. The
number of digital outputs is specified in the drive’s Installation Guide. The value of
OB[N] varies according to the logic state of the output even if the output does not
exists.

ƒ

The OB[N] syntax may be more convenient than OP for setting individual outputs.
However, it is not appropriate for the synchronized setting of several output bits.

ƒ

OB[N] will not affect digital outputs defined as AOK and/or Brake. If OB[N] is
applied to an output that is defined for a specific function, no error indication will
be sent, but the command will do nothing.

ƒ

OB[N] sets and reads the logical values of the outputs. The voltage values at the
digital output connector pins are active high or active low with respect to OB[N],
according to the OL[N] setting.

ƒ

At boot, all OB[N] values not defined for the Amplifier OK function are set so that
the output opto-couplers do not conduct. This way, no transition will occur at the
digital outputs when the drive boots. If another value is required immediately
after boot, use an #AUTOEXEC routine.

ƒ

Since Output Compare is “hard wired” to digital output #1, any setting or reading
of digital output #1 will be false when Output Compare is active (because the pins
are shared and Output Compare signals take precedence).

SimplIQ

Command Reference Manual

Alphabetical Listing

MAN-SIMCR (Ver. 4.5)

3-98

Advertising