Delta Electronics — 5.2.1 Values and Constants

Chapter 5 Device The relation among bits, nibbles, bytes, words, and double words in the binary system is shown below. DW Double word W1 W0 Word BY3 BY2 BY1 BY0 Byte NB0 NB1 NB2 NB3 NB4 NB5 NB6 NB7 Nibble Bit The PLC uses four types of values to execute the operation according to different control purposes. The following illustrates the values of these functions.: 1. Binary number (BIN) The PLC uses the binary system to operate the values. 2. Decimal number (DEC) The PLC uses decimal numbers for;  The setting value of a timer (T) or the setting value of a counter (C/HC); for example, TMR C0 50 5_ ( constant K ).

 The device number; for example, M10 and T30 (device number)  The number before or after the decimal point; for example, X0.0, Y0.11, and D10.0 (device number).  The constant K : used as the operand in an applied instruction. For example, MOV 123 D0 (constant K) . 3. Binary-coded decimal (BCD) A decimal value is represented by a nibble or four bits, so that sixteen consecutive bits represent a four-digit decimal value. 4. Hexadecimal number (HEX) The PLC uses hexadecimal numbers for;  the constant 16# : used as the operand in an applied instruction; for example, MOV 16#1A2B D0 (hexadecimal constant).

5-7 b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0