[Instruction] Contents
[Instruction] Contents [Instruction] Contents
All input controls of the function instructions should be connected by the corresponding elements, otherwise a syntaxerror will occur. As shown in example 3 below, the function instruction FUN7 has three inputs and three elements beforeFUN7. ORG X0, LD X1 and LD X2 corresponds to the first input CK↑, second input U/D and third input CLR.Example 3:Ladder DiagramFP-07 Mnemonic codeX0X1X2CKU/DCLR7.UDCTRCV :PV :R 010CUPORG X0LD X1LD X2FUN 7CV : R 0PV : 10FUN7 need threeelements becauseit has three inputs5.1.2 Instruction Number and Derivative InstructionsAs mentioned before, except for the nine instructions that can be entered using the dedicated keys on the keyboard, otherfunction 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, Tand C (except C200~C255) registers are 16-bit. If a register with 32-bit data length is required, then it is necessary tocombine two consecutive 16-bit registers together such as R1-R0, R3-R2 etc. and those registers are represented byprefix a D letter before register name such as DR0 represents R1-R0 and DR2 represents R3-R2. If you enter DR0 orDWY8 in the monitor mode of FP-07, then a 32-bit long value (R1-R0 or WY24-WY8) will be displayed.B31 B16 B15 B0DR0 = R1−R0 R1 R0↑↑High Word register Low Word registerB31 B16 B15 B0DWY8 = WY24−WY8 WY24 WY8= Y39~Y8 ↑ ↑High Word register Low Word register5-2
Remark: In order to differentiate between 16-bit and 32-bit instructions while using the ladder diagram andmnemonic code, we add the postfix letter D after the "Instruction number" to represent 32-bit instructionsand the size of their operand are 32-bit as shown in example 4 on P.6-6. The instruction FUN 11D has apostfix letter D, therefore the source and destination operands need to prefix a letter D as well, such asthe augend Sa : R0 is actually Sa=DR0=R1-R0 and Sb=DR2=R3-R2. Please also pay special attention tothe length of the other operands except source and destination are only one word whether 16-bit or 32-bitinstructions are used.P: indicates the pulse mode instruction. The instruction will be executed when the status of input control changes from 0to1 (rising edge). As shown in example 1, if a postfix letter P is added to the instruction (FUN 15P), the instruction FUN15P will only be executed when the status of input control signal changes from 0 to 1. The execution of the instructionis in level mode if it does not have a P postfix, this means the instruction will be executed for every scan until the statusof input control changes from 1 to 0. The pulse input is indicated by a symbol "↑", such as CK↑, EN↑, TG↑ etc.. Inthis operation manual, an example of the operation statement of a function instruction is shown below.● When the operation control〝EN〞=1 or〝EN↑〞(P instruction)from 0→1, ………The first one indicates the execution requirement for non-P instruction (level mode) and the second one indicates theexecution requirement for P instruction (pulse mode). The following waveform shows the result (R0) of FUN15 andFUN15P under the same input condition.t is the scan timet t t t t t t t t tInput control1Executes the FUN15P2(R0 initial is 0)0001H0002HExecutes the FUN153(R0 initial is 0)0001H 0002H 0003H 0004H0005H0006HDP: Indicates the instruction is a 32-bit instruction operating with pulse mode.Remark: P instruction is much more time saving than level instruction in program scanning, So user should use Pinstruction as much as possible.5.1.3 OperandThe operand is used for data reference and storage. The data of source (S) operand are only for reference and will not bechanged with the execution of the instruction. The destination (D) operand is used to store the result of operation and itsdata may be changed after the execution of the instruction. The following table illustrates the names and functions ofFACON PLC function instruction's operands and types of contacts, coils, or registers that can be used as an operand.5-3
- Page 6 and 7: Conventional Ladder DiagramPLC Ladd
- Page 8 and 9: Input processing (Reading thestatus
- Page 10 and 11: We must energize the coil of relay
- Page 12 and 13: Network: Network is a circuit repre
- Page 15 and 16: 1.5 The De-Composition of a Network
- Page 18 and 19: • When a single element or a seri
- Page 20 and 21: MEMO
- Page 22 and 23: 2.2 Digital and Register Allocation
- Page 24 and 25: Relay No. Function Description3. Pu
- Page 26 and 27: Relay No. Function DescriptionM1965
- Page 28 and 29: 2.4 Special Registers DetailsRegist
- Page 30 and 31: Register No. Function DescriptionR4
- Page 32 and 33: Register No. Function DescriptionR4
- Page 34 and 35: Register No. Function DescriptionR4
- Page 36 and 37: Register No. Function DescriptionR4
- Page 38 and 39: Register No. Function DescriptionD4
- Page 40 and 41: Instruction Operand Symbol Function
- Page 42 and 43: FUNNo.NameOperandDerivativeInstruct
- Page 44 and 45: FUNNo.NameOperandDerivativeinstruct
- Page 46 and 47: • Ramp Function InstructionsFUNNo
- Page 48 and 49: MEMO
- Page 50 and 51: ※For the relays marked with a ‘
- Page 52 and 53: FUN7 is the UDCTR function. While r
- Page 54 and 55: X0X1Node ANode BIncerseInversediffe
- Page 58 and 59: • The names and functions of the
- Page 60 and 61: 5.1.4 Functions Output (FO)The “F
- Page 62 and 63: Indirect addressing program example
- Page 64 and 65: 5.3.2 The Coding of Numeric Numbers
- Page 66 and 67: (2). 0.5 = (-1) 0 * 2 ( 01111110 )
- Page 68 and 69: While all FBs-PLC numerical operati
- Page 70 and 71: Basic Function InstructionT TIMER T
- Page 72 and 73: Basic Function InstructionT TIMER T
- Page 74 and 75: Basic Function InstructionCCOUNTER(
- Page 76 and 77: Basic Function InstructionSET D PSy
- Page 78 and 79: Basic Function InstructionRST D PSy
- Page 80 and 81: Basic Function InstructionFUN 0MCSy
- Page 82 and 83: Basic Function InstructionFUN 1MCES
- Page 84 and 85: Basic Function InstructionFUN 2SKPS
- Page 86 and 87: Basic Function InstructionFUN 4DIFU
- Page 88 and 89: Basic Function InstructionFUN 6 D P
- Page 90 and 91: Basic Function InstructionFUN 7 DUD
- Page 92 and 93: Basic Function InstructionFUN 9 D P
- Page 94 and 95: Basic Function InstructionFUN 11 D
- Page 96 and 97: Basic Function InstructionFUN 13 D
- Page 98 and 99: Basic Function InstructionFUN 14 D
- Page 100 and 101: Basic Function InstructionFUN 15 D
- Page 102 and 103: Basic Function InstructionFUN 17 D
- Page 104 and 105: Basic Function InstructionFUN 19 D
Remark: In order to differentiate between 16-bit and 32-bit instructions while using the ladder diagram andmnemonic code, we add the postfix letter D after the "<strong>Instruction</strong> number" to represent 32-bit instructionsand the size of their operand are 32-bit as shown in example 4 on P.6-6. The instruction FUN 11D has apostfix letter D, therefore the source and destination operands need to prefix a letter D as well, such asthe augend Sa : R0 is actually Sa=DR0=R1-R0 and Sb=DR2=R3-R2. Please also pay special attention tothe length of the other operands except source and destination are only one word whether 16-bit or 32-bitinstructions are used.P: indicates the pulse mode instruction. The instruction will be executed when the status of input control changes from 0to1 (rising edge). As shown in example 1, if a postfix letter P is added to the instruction (FUN 15P), the instruction FUN15P will only be executed when the status of input control signal changes from 0 to 1. The execution of the instructionis in level mode if it does not have a P postfix, this means the instruction will be executed for every scan until the statusof input control changes from 1 to 0. The pulse input is indicated by a symbol "↑", such as CK↑, EN↑, TG↑ etc.. Inthis operation manual, an example of the operation statement of a function instruction is shown below.● When the operation control〝EN〞=1 or〝EN↑〞(P instruction)from 0→1, ………The first one indicates the execution requirement for non-P instruction (level mode) and the second one indicates theexecution requirement for P instruction (pulse mode). The following waveform shows the result (R0) of FUN15 andFUN15P under the same input condition.t is the scan timet t t t t t t t t tInput control1Executes the FUN15P2(R0 initial is 0)0001H0002HExecutes the FUN153(R0 initial is 0)0001H 0002H 0003H 0004H0005H0006HDP: Indicates the instruction is a 32-bit instruction operating with pulse mode.Remark: P instruction is much more time saving than level instruction in program scanning, So user should use Pinstruction as much as possible.5.1.3 OperandThe operand is used for data reference and storage. The data of source (S) operand are only for reference and will not bechanged with the execution of the instruction. The destination (D) operand is used to store the result of operation and itsdata may be changed after the execution of the instruction. The following table illustrates the names and functions ofFACON PLC function instruction's operands and types of contacts, coils, or registers that can be used as an operand.5-3