[Instruction] Contents
[Instruction] Contents [Instruction] Contents
Basic Function InstructionT TIMER TSymbolOperandTn: Timer Number.PV: Preset value of the timer.TB: Time Base (0.01S, 0.1S, 1S)OperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR KWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095Tn ○PV ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○0∣32767●●●The total number of timers is 256 (T0~T255) with three different time bases, 0.01S, 0.1S and 1S.Thedefault number and allocation of timers is shown as below (Can be adjusted according to user’s actualrequirements by the “Configuration” function):T0~T49:0.01S timer(default as 0.00~327.67S)。T50~T199:0.1S timer(default as 0.0~3276.7S)。T200~T255:1S timer(default as 0~32767S)。FBs-PLC programming tool will lookup the timer’s time base automatically according to the “MemoryConfiguration” after the timer number is keyed in. Timer’s time = Time base x Preset value. In the example1 below, the time base T0 = 0.01S and the PV value = 1000, therefore the T0 timer’s time = 0.01S x 1000 =10.00S.If PV is a register, then Timer’s time = Time base x register content. Therefore, you only need to changethe register content to change the timer’s time. Please refer to Example 2.※ The maximum error of a timer is a time base plus a scan time. In order to reduce the timing error in theapplication, please use the timer with a smaller time base.Description●●When the time control “EN” is 1, the timer will start timing (the current value will accumulate from 0) until“Time Up” (i.e. CV≧PV), then the Tn contact and TUP (FO0) will change to 1. As long as the timer control“EN” input is kept as 1, even the CV of Tn has reached or exceeded the PV, the CV of the timer willcontinue accumulating (with M1957 = 0) until it reaches the maximum limit (32767). The Tn contact statusand flag will remain as 1 when CV≧PV, unless the “EN” input is 0. When “EN” input is 0, the CV of Tn willbe reset to 0 immediately and the Tn contact and “Time Up” flag TUP will also change to 0 (please refer tothe diagram below).If the FBS-PLC OS version is higher than V3.0 (inclusive), the M1957 can be set to 1 so the CV will notaccumulate further after “Time Up” and stops at the PV value. The default value of the M1957 is 0,therefore the status of M1957 can be set before executing any timer instruction in the program toindividually set the timer CV to continue accumulating or stop at the PV after “Time Up” (please refer to thediagram below).6-2
Basic Function InstructionT TIMER TExample 1Constant preset valueLadder diagram Key operations Mnemonic codeX1EN.01ST0 1000TUPY0ORG ORG X 1T0 PV: 1000X1ENPSET M1957.01ST1 1000TUPOUTFO 0OUT Y 0ORGORGSHORTSET M 1957An example of taking“Time-Up” signal directlyfrom FO0.ORGORG X 1T1 PV: 1000M1957=0(Defaulted)Y0 orX1T0(CV)T0010.0S327.67S100032767M1957=1T1(CV)T101000CVTime StartTime-UpExample 2Variable PVThe preset value (PV) shown in example 1 is a constant which is equal to 1000. This value is fixed and can notbe changed once programmed. In many circumstances, the preset time of the timers needs to be varied whilePLC running. In order to change the preset time of a timer, can first use a register as the PV operand (R or WX,WY...) and then the preset time can be varied by changing the register content. As shown in this example, if setR0 to100, then T becomes a 10S Timer, and hence if set R0 to 200, then T becomes a 20S Timer.6-3
- 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 56 and 57: All input controls of the function
- 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 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
- Page 106 and 107: Basic Function InstructionFUN 21 D
- Page 108 and 109: Advanced Function InstructionFUN22
- Page 110 and 111: Advanced Function InstructionFUN 24
- Page 112 and 113: Advanced Function InstructionFUN 26
- Page 114 and 115: Advanced Function InstructionFUN 28
- Page 116 and 117: Advanced Function InstructionFUN 30
- Page 118 and 119: Advanced Function InstructionFUN32A
Basic Function <strong>Instruction</strong>T TIMER TExample 1Constant preset valueLadder diagram Key operations Mnemonic codeX1EN.01ST0 1000TUPY0ORG ORG X 1T0 PV: 1000X1ENPSET M1957.01ST1 1000TUPOUTFO 0OUT Y 0ORGORGSHORTSET M 1957An example of taking“Time-Up” signal directlyfrom FO0.ORGORG X 1T1 PV: 1000M1957=0(Defaulted)Y0 orX1T0(CV)T0010.0S327.67S100032767M1957=1T1(CV)T101000CVTime StartTime-UpExample 2Variable PVThe preset value (PV) shown in example 1 is a constant which is equal to 1000. This value is fixed and can notbe changed once programmed. In many circumstances, the preset time of the timers needs to be varied whilePLC running. In order to change the preset time of a timer, can first use a register as the PV operand (R or WX,WY...) and then the preset time can be varied by changing the register content. As shown in this example, if setR0 to100, then T becomes a 10S Timer, and hence if set R0 to 200, then T becomes a 20S Timer.6-3