Step 5 Data Formats file: vertexdoc\datatypes.wpd

Fixed point numbers are 16 bit (=1 word) or 32 bit (=2 words) in binary representation. Bit 15 or Bit 31 contains the sign. They are entered as KF (16-bit) or DH (32-Bit)

Floating point numbers are 32 bits (double words). Input example: to load N=12.34567 ,

type in :LKG1234567+2 which will then appear as :L KG + 1234567 +02

In a data block, if you want to define N=-0.005 input 6: KG = -5000000 -02

BCD numbers range from -999 to +999, only three digits. They are coded into 16 bits, with bits 12 through 15 reserved for the sign. 0000 is positive, 1111 is negative.

ACCU 1	32 bit accumulator

ACCU 2

ACCU 3

ACCU 4

ACC's form a pipeline: when ACCU1 is loaded, its previous contents transfer to ACCU2.

ACCU1-H	high word of accu1

ACCU1-L	low word of accu1

BN	n	byte constant

DD	n	data double word

DH	n	double work constant (hexadecimal)

DL	n	data byte left

DR	n	data byte right

DW n	data word in a data block (range DW0 to DW 255)

F	n.m	flag bit

FD	n	flag double word

FW	n	flag word 16 bits

FY	n	flag byte

I	n.m	input bit

IB	n	input byte

ID	n	input double word

IW	n	input word (range: IW0 to IW126)

KB	n	constant (byte)

KF	n	constant (word)

KG	n	floating point constant (32 bits)

KS	n	string constant (2 ascii characters)

KY	n n	constant (2 bytes)

OW	n	word from extended periphery

OY	n	byte from extended periphery

PY	n	peripheral byte

Q	n.m	output bit

QB	n	output byte

QD	n	output double word

QW	n	output word 16 bits (range: QW0 to QW254)

Flags are addressed via flag byte loctions. For example, FD 101 is a 32 bit word beginning at

Flag byte 101 and extending through Flag bytes 102, 103, and 104. FW 101 is a 16 bit word beginning at Flag byte 101 and extending through Flag byte 102.

Example:

FD100	2	1	0	F	0	3	0	0

FD101	0	F	0	3	0	0	0	0

FW100	2	1	0	F

FW101	0	F	0	3

FW102	0	3	0	0

FW103	0	0	0	0

FY100	2	1

FY101	0	F

FY102	0	3

FY103	0	0

FY104	0	0

F100.0	1

F100.1	0

F100.2	0

F100.3	0

F100.4	0

F100.5	1

F100.6	0

F100.7	0