Mitsubishi Electronics Q173CPU(N) Home Security System User Manual


 
A - 14
6.9.2 Selective branch, selective coupling.................................................................................................6-19
6.9.3 Parallel branch, parallel coupling...................................................................................................... 6-20
6.10 Y/N Transitions.......................................................................................................................................6-22
6.11 Motion SFC Comments .........................................................................................................................6-26
7. OPERATION CONTROL PROGRAMS 7- 1 to 7-96
7.1 Operation Control Programs.................................................................................................................... 7- 1
7.2 Device Descriptions ................................................................................................................................. 7- 7
7.3 Constant Descriptions.............................................................................................................................. 7- 9
7.4 Binary Operations ....................................................................................................................................7-10
7.4.1 Substitution : =................................................................................................................................... 7-10
7.4.2 Addition : +......................................................................................................................................... 7-12
7.4.3 Subtraction :
..................................................................................................................................7-13
7.4.4 Multiplication : * .................................................................................................................................7-15
7.4.5 Division : / .......................................................................................................................................... 7-16
7.4.6 Remainder : %................................................................................................................................... 7-17
7.5 Bit Operations........................................................................................................................................... 7-18
7.5.1 Bit inversion(Complement) : ~ .......................................................................................................... 7-18
7.5.2 Bit logical AND : & .............................................................................................................................7-19
7.5.3 Bit logical OR : |................................................................................................................................. 7-20
7.5.4 Bit exclusive logical OR : ^................................................................................................................ 7-21
7.5.5 Bit right shift : >>................................................................................................................................ 7-22
7.5.6 Bit left shift : <<.................................................................................................................................. 7-23
7.5.7 Sign inversion(Complement of 2) :
............................................................................................... 7-24
7.6 Standard Functions.................................................................................................................................. 7-25
7.6.1 Sine : SIN...........................................................................................................................................7-25
7.6.2 Cosine : COS.....................................................................................................................................7-26
7.6.3 Tangent : TAN ................................................................................................................................... 7-27
7.6.4 Arcsine : ASIN ................................................................................................................................... 7-28
7.6.5 Arccosine : ACOS ............................................................................................................................. 7-29
7.6.6 Arctangent : ATAN ............................................................................................................................ 7-30
7.6.7 Square root : SQRT .......................................................................................................................... 7-31
7.6.8 Natural logarithm : LN ....................................................................................................................... 7-32
7.6.9 Exponential operation : EXP.............................................................................................................7-33
7.6.10 Absolute value : ABS ......................................................................................................................7-34
7.6.11 Round-off : RND.............................................................................................................................. 7-35
7.6.12 Round-down : FIX ...........................................................................................................................7-36
7.6.13 Round-up : FUP ..............................................................................................................................7-37
7.6.14 BCD
BIN conversion : BIN ......................................................................................................... 7-38
7.6.15 BIN
BCD conversion : BCD........................................................................................................ 7-39
7.7 Type Conversions ....................................................................................................................................7-40
7.7.1 Signed 16-bit integer value conversion : SHORT ............................................................................ 7-40
7.7.2 Unsigned 16-bit integer value conversion : USHORT ..................................................................... 7-41
7.7.3 Signed 32-bit integer value conversion : LONG............................................................................... 7-42
7.7.4 Unsigned 32-bit integer value conversion : ULONG........................................................................ 7-43
7.7.5 Signed 64-bit floating-point value conversion : FLOAT ................................................................... 7-44
7.7.6 Unsigned 64-bit floating-point value conversion : UFLOAT ............................................................ 7-45