Chapter 5: Description of Function Instructions
5.1
The Format of Function Instructions ....................................................................... 5-1
5.1.1
Input Control
........................................................................................................ 5-1
5.1.2
Instruction Number and Derivative Instructions
........................................................ 5-2
5.1.3
Operand
.............................................................................................................. 5-3
5.1.4
Functions Output (FO)
.......................................................................................... 5-6
5.2
Use Index Register(XR) for Indirect Addressing ..................................................... 5-6
5.3
Numbering System ................................................................................................. 5-9
5.3.1
Binary Code and Relative Terminologies
................................................................. 5-9
5.3.2
The Coding of Numeric Numbers for FB
S
-PLC
......................................................... 5-11
5.3.3
Range of Numeric Value
....................................................................................... 5-11
5.3.4
Representation of Numeric Value
........................................................................... 5-11
5.3.5
Representation of Negative Number
....................................................................... 5-12
5.4
Overflow and Underflow of Inc1) or Decrement(-1) ................................. 5-12
5.5
Carry and Borrow in Addition/Subtraction ............................................................... 5-13
Chapter 6: Basic Function Instructions
z
T (Timer)
...................................................... 6-2
z
C (Counter)..................................................... 6-5
z
Set (SET)
........................................................ 6-8
z
Reset (RESET)
.................................................... 6-10
z
Master control loop start (FUN0) ...................................................... 6-12
z
Master control loop end (FUN01) .................................................... 6-14
z
Skip start
(FUN02) .................................................... 6-15
z
Skip end
(FUN03) .................................................... 6-17
z
Differential up
(FUN04) .................................................... 6-18
z
Differential down
(FUN05) .................................................... 6-19
z
Bit shift
(FUN06) .................................................... 6-20
z
Up/down counter
(FUN07) .................................................... 6-21
z
Move (FUN08)
.................................................... 6-23
z
Move inverse
(FUN09) .................................................... 6-24
z
Toggle switch
(FUN10) .................................................... 6-25
z
Addition (FUN11)
.................................................... 6-26
z
Subtraction (FUN12)
.................................................... 6-27
z
Multiplication (FUN13)
.................................................... 6-28