Instruction Number And Derivative Instructions - FATEK FBS Series Manual

Plc
Hide thumbs Also See for FBS Series:
Table of Contents

Advertisement

All input controls of the function instructions should be connected by the corresponding elements, otherwise a syntax
error will occur. As shown in example 3 below, the function instruction FUN7 has three inputs and three elements before
FUN7. ORG X0, LD X1 and LD X2 corresponds to the first input CK↑, second input U/D and third input CLR.
Example 3:
X0
CK
X1
U/D
X2
CLR

5.1.2 Instruction Number and Derivative Instructions

As mentioned before, except for the nine instructions that can be entered using the dedicated keys on the keyboard, other
function instructions must be entered using the "instruction number". Follow the instruction number there are postfixes D,
P, DP can be added which can derive three additional function instructions.
D: Indicates a Double Word (32-bit). The 16-bit word is the basic unit of the registers in FBs-PLC. The data length of R, T
and C (except C200~C255) registers are 16-bit. If a register with 32-bit data length is required, then it is necessary to
combine two consecutive 16-bit registers together such as R1-R0, R3-R2 etc. and those registers are represented by
prefix a D letter before register name such as DR0 represents R1-R0 and DR2 represents R3-R2. If you enter DR0 or
DWY8 in the monitor mode of FP-07, then a 32-bit long value (R1-R0 or WY24-WY8) will be displayed.
DR0 =R1−R0
DWY8
Ladder Diagram
7.UDCTR
0
CV :
CUP
R
PV :
10
=WY24−WY8
=Y39~Y8
FP-07 Mnemonic code
ORG
X 0
LD
X 1
LD
X 2
FUN
7
CV : R
PV :
B31
B16 B15
R1
High Word register
B31
B16 B15
WY24
High Word register
5 - 2
FUN7 need three
elements because
it has three inputs
0
10
B0
R0
Low Word register
B0
WY8
Low Word register

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents