[Instruction] Contents
[Instruction] Contents [Instruction] Contents
Advanced Function InstructionFUN146 PDISDISABLE CONTROL OF THE INTERRUPT AND PERIPHERALFUN146 PDISLBL : Interrupt label intended to disable or peripheral name tobe disabled.• When prohibit control “EN” =1 or “EN↑” ( P instruction) changes from 0→1, it disable the interrupt orperipherial operation designated by LBL.• The interrupt label name is as follows:LBL name Description LBL name Description LBL name DescriptionHSTAIHSTA High speedX4 positive edgeX10 positive edgeX4+IX10+Icounter interruptinterruptinterruptHSC0IHSC0 High speedX5 negative edgeX10 negative edgeX4−IX10−Icounter interruptinterruptinterruptHSC1IHSC1 High speedX5 positive edgeX11 positive edgeX5+IX11+Icounter interruptinterruptinterruptHSC2IHSC2 High speedX5 negative edgeX11 negative edgeX5−IX11−Icounter interruptinterruptinterruptHSC3IHSC3 High speedX6 positive edgeX12 positive edgeX6+IX12+Icounter interruptinterruptinterruptX0+IX0 positive edgeX6 negative edgeX12 negative edgeX6−IX12−IinterruptinterruptinterruptX0−IX0 negative edgeX7 positive edgeX13 positive edgeX7+IX13+IinterruptinterruptinterruptX1+IX1 positive edgeX7 negative edgeX13 negative edgeX7−IX13−IinterruptinterruptinterruptX1−IX1 negative edgeX8 positive edgeX14 positive edgeX8+IX14+IinterruptinterruptinterruptX2+IX2−IX3+IX3−IX2 positive edgeinterruptX2 negative edgeinterruptX3 positive edgeinterruptX3 negative edgeinterruptX8−IX9+IX9−IX8 negative edgeinterruptX9 positive edgeinterruptX9 negative edgeinterruptX14−IX15+IX15−IX14 negative edgeinterruptX15 positive edgeinterruptX15 negative edgeinterrupt• In practical application, some interrupt signals should not be allowed to work at certain situation. To achivethis, this instruction may be used to disable the interrupt signal.Program exampleM0EN146.PDISX2+I• When M0 changes from 0→1, it prohibits X2 fromsending interrupt when X2 changes from 0→1.7-121
Advanced Function InstructionFUN150M-BUSExecution controlASCII/RTUAbortMODBUS MASTER INSTRUCTION(WHICH MAKES PLC AS THE MODBUS MASTER THROUGH PORT 1~4)ENA/RABTLadder symbol150.M_BUSPt :SR :WR :ACTERRDNFUN150M-BUSPt :1~4, specify the communication port being actedas the Modbus masterSR:Starting register of communication programWR :Starting register for instruction operation. It controls 8registers, the other programs can not repeat in using.RangeOperandPtHR ROR DR KR0∣R3839R5000∣R8071D0∣D4095SR ○ ○ ○WR ○ ○* ○1~4Description1. FUN150 (M-BUS) instruction makes PLC act as Modbus master through Port 1~4, thus it is very easy tocommunicate with the intelligent peripheral with Modbus protocol.2. The master PLC may connect with 247 slave stations through the RS-485 interface.3. Only the master PLC needs to use M-BUS instruction.4. It employs the program coding method or table filling method to plan for the data flow controls; i.e. from whichone of the slave station to get which type of data and save them to the master PLC, or from the master PLCto write which type of data to the assigned slave station. It needs only seven registries to make definition;every seven registers define one packet of data transaction.5. When execution control 〝EN↑〞changes from 0→1 and both inputs Pause “PAU” and Abort “ABT” are 0, andif Port 1/2/3/4 hasn’t been controlled by other communication instructions [i.e. M1960 (Port1) / M1962 (Port2) /M1936 (Port3) / M1938 (Port4) = 1], this instruction will control the Port 1/2/3/4 immediately and set theM1960/M1962/M1936/M1938 to be 0 (which means it is being occupied), then going on a packet of datatransaction immediately. If Port 1/2/3/4 has been controlled (M1960/M1962/M1936/M1938 = 0), then thisinstruction will enter into the standby status until the controlling communication instruction completes itstransaction or pause/abort its operation to release the control right (M1960/M1962/M1936/M1938 =1), andthen this instruction will become enactive, set M1960/M1962/M1936/M1938 to be 0, and going on the datatransaction immediately.6. While in transaction processing, if operation control “ABT” becomes 1, this instruction will abort thistransaction immediately and release the control right (M1960/M1962/M1936/M1938 = 1). Next time, when thisinstruction takes over the transmission right again, it will restart from the first packet of data transaction.7. While〝A/R〞=0,Modbus RTU protocol;〝A/R〞=1,Modbus ASCII protocol。8. While it is in the data transaction, the output indication “ACT” will be ON.9. If there is error occurred when it finishes a packet of data transaction, the output indication “DN” & “ERR” willbe ON.10. If there is no error occurred when it finishes a packet of data transaction, the output indication “DN” will beON.7-122
- Page 178 and 179: Advanced Function InstructionFUN 86
- Page 180 and 181: Advanced Function InstructionFUN89/
- Page 182 and 183: Advanced Function InstructionFUN 90
- Page 184 and 185: Advanced Function InstructionFUN 92
- Page 186 and 187: Advanced Function InstructionFUN 94
- Page 188 and 189: Advanced Function InstructionFUN 95
- Page 190 and 191: Advanced Function InstructionTable
- Page 192 and 193: Advanced Function InstructionFUN101
- Page 194 and 195: Advanced Function InstructionFUN103
- Page 196 and 197: Advanced Function InstructionFUN105
- Page 198 and 199: Advanced Function InstructionFUN107
- Page 200 and 201: Advanced Function InstructionFUN109
- Page 202 and 203: Advanced Function InstructionFUN110
- Page 204 and 205: Advanced Function InstructionFUN111
- Page 206 and 207: Advanced Function InstructionFUN112
- Page 208 and 209: Advanced Function InstructionFUN114
- Page 210 and 211: Advanced Function InstructionFUN120
- Page 212 and 213: Advanced Function InstructionFUN122
- Page 214 and 215: Advanced Function InstructionFUN124
- Page 216 and 217: Advanced Function InstructionFUN126
- Page 218 and 219: Advanced Function InstructionFUN128
- Page 220 and 221: Advanced Function InstructionFUN130
- Page 222 and 223: Advanced Function InstructionFUN 13
- Page 224 and 225: Advanced Function InstructionFUN141
- Page 226 and 227: Advanced Function InstructionFUN143
- Page 230 and 231: Advanced Function InstructionFUN 15
- Page 232 and 233: Advanced Function InstructionFUN160
- Page 234 and 235: Advanced Function InstructionFUN201
- Page 236 and 237: Advanced Function InstructionFUN 20
- Page 238 and 239: Advanced Function InstructionFUN 20
- Page 240 and 241: Advanced Function InstructionFUN 20
- Page 242 and 243: Advance Function InstructionFUN 208
- Page 244 and 245: Advanced Function InstructionFUN 21
- Page 246 and 247: Advanced Function InstructionFUN 21
- Page 248 and 249: MEMO
- Page 250 and 251: 8.2 Basic Formation of Step Ladder
- Page 252 and 253: . Single CycleM1924X0• When step
- Page 254 and 255: ●STP Sxxx : S20≦Sxxx≦S999(Dis
- Page 256 and 257: 【Description】: 1. When ON, the
- Page 258 and 259: ●STPEND :(Displayed in WinProladd
- Page 260 and 261: Example 1WinProladderFP-07M1924STP
- Page 262 and 263: Example 3WinProladderFP-07M1924STP
- Page 264 and 265: WinProladderFP-07M1924STP S0X1X2X0S
- Page 266 and 267: WinProladderM1924TO S0X1STP S0SET Y
- Page 268 and 269: ●Pedestrian Crossing Lights Contr
- Page 270 and 271: 8.6 Syntax Check Error Codes for St
- Page 272 and 273: 1.1 Profile112798716外 徑 4ψ×4
- Page 274 and 275: 〝H〞 indicates hexadecimal↓
- Page 276 and 277: 1.5.2 FUN function description• F
Advanced Function <strong>Instruction</strong>FUN146 PDISDISABLE CONTROL OF THE INTERRUPT AND PERIPHERALFUN146 PDISLBL : Interrupt label intended to disable or peripheral name tobe disabled.• When prohibit control “EN” =1 or “EN↑” ( P instruction) changes from 0→1, it disable the interrupt orperipherial operation designated by LBL.• The interrupt label name is as follows:LBL name Description LBL name Description LBL name DescriptionHSTAIHSTA High speedX4 positive edgeX10 positive edgeX4+IX10+Icounter interruptinterruptinterruptHSC0IHSC0 High speedX5 negative edgeX10 negative edgeX4−IX10−Icounter interruptinterruptinterruptHSC1IHSC1 High speedX5 positive edgeX11 positive edgeX5+IX11+Icounter interruptinterruptinterruptHSC2IHSC2 High speedX5 negative edgeX11 negative edgeX5−IX11−Icounter interruptinterruptinterruptHSC3IHSC3 High speedX6 positive edgeX12 positive edgeX6+IX12+Icounter interruptinterruptinterruptX0+IX0 positive edgeX6 negative edgeX12 negative edgeX6−IX12−IinterruptinterruptinterruptX0−IX0 negative edgeX7 positive edgeX13 positive edgeX7+IX13+IinterruptinterruptinterruptX1+IX1 positive edgeX7 negative edgeX13 negative edgeX7−IX13−IinterruptinterruptinterruptX1−IX1 negative edgeX8 positive edgeX14 positive edgeX8+IX14+IinterruptinterruptinterruptX2+IX2−IX3+IX3−IX2 positive edgeinterruptX2 negative edgeinterruptX3 positive edgeinterruptX3 negative edgeinterruptX8−IX9+IX9−IX8 negative edgeinterruptX9 positive edgeinterruptX9 negative edgeinterruptX14−IX15+IX15−IX14 negative edgeinterruptX15 positive edgeinterruptX15 negative edgeinterrupt• In practical application, some interrupt signals should not be allowed to work at certain situation. To achivethis, this instruction may be used to disable the interrupt signal.Program exampleM0EN146.PDISX2+I• When M0 changes from 0→1, it prohibits X2 fromsending interrupt when X2 changes from 0→1.7-121