Vf (variable format), General – Yaskawa SMC–4000 User Manual

Page 248

Advertising
background image

238

SMC–4000 User Manual

VF (Variable Format)

[General]

DESCRIPTION:

The VF command allows the variables and arrays to be formatted for number of digits before and after the
decimal point. When displayed, the value m represents the number of digits before the decimal point, and
the value n represents the number of digits after the decimal point. When in hexadecimal, the string will be
preceded by a $. Hex numbers are displayed as 2's complement with the first bit used to signify the sign.

If a number exceeds the format, the number will be displayed as the maximum possible positive or negative
number (i.e. 999.99, -999, $8000 or $7FF).

ARGUMENTS: VF m.n

where

m and n are unsigned numbers. A negative m specifies hexadecimal format.

USAGE:

OPERAND USAGE:

_VF contains the value of the format for variables and arrays.

EXAMPLES:

While Moving

Yes

Minimum m Value

-8

In a Program

Yes

Maximum m Value

10

Command Line

Yes

Default m Value

10

Can be Interrogated

Yes

Minimum n Value

0

Used as an Operand

Yes

Maximum n Value

4

Default n Value

4

Default Format

2.1

VF 5.3

Sets 5 digits of integers and 3 digits after the

decimal point

VF 8.0

Sets 8 digits of integers and no fractions

VF -4.0

Specify hexadecimal format with 4 bytes to

the left of the decimal

Advertising