
|
|
|
|
| Appendix D How to Use PLC Function |
X0 | 1 | The output of Y0 will be decided by circuit | |||
|
|
| Y0 | 2 | |
|
|
|
|
| ○, i.e. decided by On/Off of X10. |
Y0 is repeated
X10
Y02
D.4.3 Value, Constant [K] / [H]
Constant
K | Decimal | |
|
|
|
H | Hexadecimal | H0000 ~ HFFFF |
|
|
|
There are five value types for
1.Binary Number (BIN)
It uses binary system for the PLC internal operation or storage. The relative information of binary system is in the following.
Bit | : Bit is the basic unit of binary system, the status are 1 or 0. |
Nibble | : It is made up of continuous 4 bits, such as b3~b0. It can be used to represent |
| number 0~9 of decimal or 0~F of hexadecimal. |
Byte | : It is made up of continuous 2 nibbles, i.e. 8 bits, b7~b0. It can used to represent |
| 00~FF of hexadecimal system. |
Word | : It is made up of continuous 2 bytes, i.e. 16 bits, b15~b0. It can used to represent |
| 0000~FFFF of hexadecimal system. |
Double | : It is made up of continuous 2 words, i.e. 32 bits, b31~b0. It can used to |
Word | represent 00000000~FFFFFFFF of hexadecimal system. |
The relations among bit, nibble, byte, word, and double word of binary number are shown as follows.
|
| W1 | DW |
| W0 |
|
|
| Double Word |
|
|
|
|
|
| ||||
|
|
|
|
|
|
| Word | ||
|
|
|
|
|
|
| |||
| BY3 |
| BY2 |
| BY1 |
| BY0 |
| Byte |
NB7 | NB6 | NB5 | NB4 | NB3 | NB2 | NB1 | NB0 |
| |
| Nibble | ||||||||
| |||||||||
|
|
|
|
|
|
|
|
| Bit |
|
|
|
|
|
|
|
|
|
2.Octal Number (OCT)
The numbers of external input and output terminal of
Example:
External input: X0~X7, X10~X17…(device number)
Revision June 2008, 04EE, |