6F3B0253

6. Programming Information

6.1 Devices and registers

The T1-16S program consists of bit-based instructions that handle ON/OFF information, such as contact and coil instructions, and register-based (16-bit) instructions, such as those for data transfer and arithmetic operations.

Devices are used to store the ON/OFF information of contacts and coils, and registers are used to store 16-bit data.

Devices are divided into six types:

XExternal input devices

YExternal output devices

RAuxiliary relay devices

SSpecial devices

T.Timer devices

C. Counter devices

Registers are divided into eight types:

XW

External input registers

YW

External output registers

RW

Auxiliary relay registers

SW

Special registers

TTimer registers

C Counter registers

D Data registers I, J, K Index registers

Device and register numbers

X devices share the same memory area as XW registers. Device X004, for example, represents the number 4 bit in the XW00 register.

 

Bit position / Number

(MSB)

(LSB)

F E D C B A 9 8 7 6 5 4 3 2 1 0

XW00

1

X004

Thus, "X004 is ON" means that bit number 4 of XW00 is 1. Y, R, and S devices work in a similar manner.

74 T1-16S User’s Manual

Page 76
Image 76
Toshiba 6F3B0253 user manual Devices and registers, Device and register numbers