您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 咨询培训 > GE Fanuc PLC指令培训
©2005GEFanucAutomation,Inc.AllRightsReservedGEFanucPLC指令培训GEFanucAutomationShanghaiOfficeVer2.20©2005GEFanucAutomation,Inc.AllRightsReserved编程语言1。指令助记符(IL)2。梯形图(LD)3。顺序功能图(SFC)4。“C”语言,“BASIC”语言5。状态逻辑©2005GEFanucAutomation,Inc.AllRightsReserved编程方式手持式编程器——HHPLM90——DOSCC90——WindowsVersaPro——Windows计算机+编程软件©2005GEFanucAutomation,Inc.AllRightsReserved继电器控制电路R9REV_PBFWD_PBSTOP_PBR1390940MTR_FWDR9MTR_REVR13L1L2©2005GEFanucAutomation,Inc.AllRightsReservedPLC工作原理I1I2I3I4I5I6Q1Q2Q3Q4Q5Q6000000010000Q1()Q2()I1I1I2Q2CPU输出地址%Q输入地址%I用户程序数据储存(%M,%R,...)I1I2I3I4I5I6I7I8COM输入模块输出模块Q1Q2Q3Q4Q5Q6Q7Q8COM123输入扫描执行程序输出刷新通讯服务123©2005GEFanucAutomation,Inc.AllRightsReservedGEPLC地址表示形式外部地址%I%Q%AI%AQ位地址字地址地址数为自然数——例如“%R0326”内部地址%M%G%T%R%S——系统标志—位地址——寄存器—字地址中间继电器—位地址外部地址%I%Q%AI%AQ位地址字地址%AI00326表示地址地址类型地址号©2005GEFanucAutomation,Inc.AllRightsReserved指令分类——按形式分2.功能块1.继电器触点线圈——()EnableOK输入参数I1I2I3输出参数Q功能数据类型地址%R条件长度©2005GEFanucAutomation,Inc.AllRightsReserved指令分类——按功能分1。继电器功能2。定时器/计数器3。算术运算功能4。关系运算功能5。位操作功能6。数据传送功能7。数据表格功能8。转换功能9。控制功能©2005GEFanucAutomation,Inc.AllRightsReserved继电器和基本编程RelayandBasicProgrammingSeries90-30指令教程RELAYF1Shift©2005GEFanucAutomation,Inc.AllRightsReservedZCREV_PBFWD_PBSTOP_PBFCMTR_FWDZCMTR_REVL1L2FC继电器控制电路ZCREV_PBFWD_PBSTOP_PBFCMTR_FWDZCMTR_REVL1L2FC|%I0003%I0001%I0002%Q0001+--]/[--+--][--+--]/[-----------------------()--|||||%Q0001||+--][--+||||%I0001%I0002%Q0002|+--]/[--+--][--+-------------------()--|||||%Q0002||+--][--+©2005GEFanucAutomation,Inc.AllRightsReserved继电器指令基本元素--][----]/[-more--()--(RM)--(SM)-vert|Horz-|10|4|9|8|7|6|5|3|2|1RELAYOPNSPTMRCTRMATHRELATBITOPDATAMTABLECONVRTCONTRL---++----(/M)-more--(/)---(M)---(R)---(S)---(^)---(v)-|10|4|9|8|7|6|5|3|2|1RELAYOPNSPTMRCTRMATHRELATBITOPDATAMTABLECONVRTCONTRLRELAYF1ShiftmoreF10©2005GEFanucAutomation,Inc.AllRightsReserved+——()—(/)—(S)—(R)—+—()—()继电器指令基本元素—(M)—(/M)—(SM)—(RM)触点线圈©2005GEFanucAutomation,Inc.AllRightsReserved定时器和计数器TimersandCountersSeries90-30指令教程TMRCTRofdtF2Shift©2005GEFanucAutomation,Inc.AllRightsReserved•Watch-DogTimer•ConstantSweepTimer•Time-of-DayClock•ElapsedTimeClock•TimeTickContactsPLC系统时间©2005GEFanucAutomation,Inc.AllRightsReserved定时器TMRCTRofdtF2ShiftR??????保持型延时接通定时器RPVCVONDTR0.10SF1R??????延时断开定时器OFDTF2PVCV0.10S延时接通定时器TMRF3PVCV0.10SR??????ondtrofdttmrtmbaseupctrdnctr|10|4|9|8|7|6|5|3|2|1RELAYOPNSPTMRCTRMATHRELATBITOPDATAMTABLECONVRTCONTRL©2005GEFanucAutomation,Inc.AllRightsReserved延时接通定时器TimerTMR0.1S0.01S0.001SPV%R????Address预置值—()输出端当前值预置值控制字%R%R+1%R+2连续三个R寄存器时基延时时间t=预置值×时基%I,%Q,%M,%T,%G,%R,%AI,%AQ,CONST输入端例如:%R0100,或常数:00050例如:%R0001~%R0003©2005GEFanucAutomation,Inc.AllRightsReserved延时接通定时器Timer输出端预置值Enable其工作波形图如下:输入端输出端计时值预置值TS©2005GEFanucAutomation,Inc.AllRightsReserved延时断开定时器TimerOFDT0.1S0.01S0.001SPV%R????Address预置值—()输出端输入端当前值预置值控制字%R%R+1%R+2连续三个R寄存器时基延时时间t=预置值×时基%I,%Q,%M,%T,%G,%R,%AI,%AQ,CONST©2005GEFanucAutomation,Inc.AllRightsReserved延时断开定时器Timer其工作波形图如下:输入端输出端计时值预置值TS输出端预置值OFDT0.1SPV%R0001输入端©2005GEFanucAutomation,Inc.AllRightsReservedONDTR0.1S0.01S0.001SPV%R????Address预置值—()输出端输入端当前值预置值控制字%R%R+1%R+2连续三个R寄存器时基延时时间t=预置值×时基%I,%Q,%M,%T,%G,%R,%AI,%AQ,CONSTR复位保持型定时器Timer©2005GEFanucAutomation,Inc.AllRightsReserved保持型定时器Timer其工作波形图如下:输入端输出端计时值预置值TST1T2TS=T1+T2输出端预置值ONDTR0.1SPV%R0001输入端复位R复位端©2005GEFanucAutomation,Inc.AllRightsReserved计数器TMRCTRofdtF2ShiftR??????加计数器RPVCVUPCTRF4R??????减计数器RPVCVUPCTRF5ondtrofdttmrtmbaseupctrdnctr|10|4|9|8|7|6|5|3|2|1RELAYOPNSPTMRCTRMATHRELATBITOPDATAMTABLECONVRTCONTRL©2005GEFanucAutomation,Inc.AllRightsReservedPV%R????Address预置值—()输出端输入端当前值预置值控制字%R%R+1%R+2连续三个R寄存器%I,%Q,%M,%T,%G,%R,%AI,%AQ,CONSTR复位计数器CounterUPCTRDNCTR©2005GEFanucAutomation,Inc.AllRightsReserved数学运算指令MathOperationsSeries90-30指令教程MATHmulF3Shift©2005GEFanucAutomation,Inc.AllRightsReserved算术运算ArithmeticFunction加法运算F1I1ADDINTI2Q???????????????减法运算F2I1SUBINTI2Q???????????????乘法运算F3I1MULINTI2Q???????????????除法运算F4I1DIVINTI2Q???????????????MATHmulF3Shiftaddsubmultypesdivmodasbsqrtmore|10|4|9|8|7|6|5|3|2|1RELAYOPNSPTMRCTRMATHRELATBITOPDATAMTABLECONVRTCONTRL©2005GEFanucAutomation,Inc.AllRightsReserved算术运算(1)ArithmeticFunctionEnableADDSUBMULDIVMODINTDINTREAL%I,%Q,%M,%T,%G,%R,%AI,%AQ,CONSTI2OK%I,%Q,%M,%T,%G不能用于REALQ%I,%Q,%M,%T,%G,%R,%AI,%AQ,CONSTI1ADD:Q=I1+I2SUB:Q=I1-I2MUL:Q=I1*I2DIV:Q=I1/I2MOD:Q=I1-((I1/I2)*I2)%I,%Q,%M,%T,%G,%R,%AI,%AQ©2005GEFanucAutomation,Inc.AllRightsReserved(Continued)算术运算ArithmeticFunction开方运算F6INSQRTINTQ??????????求模运算F5I1MODINTI2Q???????????????求绝对值运算F7INABSINTQ??????????MATHmulF3Shiftaddsubmultypesdivmodasbsqrtmore|10|4|9|8|7|6|5|3|2|1RELAYOPNSPTMRCTRMATHRELATBITOPDATAMTABLECONVRTCONTRL©2005GEFanucAutomation,Inc.AllRightsReserved算术运算(2)ArithmeticFunctionEnableSQRTINTDINTREALOK%I,%Q,%M,%T,%G,%R,%AI,%AQQ%I,%Q,%M,%T,%G,%R,%AI,%AQ,CONSTI1SQRT:Q=IN√©2005GEFanucAutomation,Inc.AllRightsReserved函数运算ArithmeticFunctionsincostanasinacosdegatanradmore|10|4|9|8|7|6|5|3|2|1RELAYOPNSPTMRCTRMATHRELATBITOPDATAMTABLECONVRTCONTRLmoreF9log10lnexpexptmore|10|4|9|8|7|6|5|3|2|1RELAYOPNSPTMRCTRMATHRELATBITOPDATAMTABLECONVRTCONTRLmor
本文标题:GE Fanuc PLC指令培训
链接地址:https://www.777doc.com/doc-958271 .html