问题:
PLC如何编程,实现使用HMI和MCP面板切换MCS / WCS?
回答:
程序如下:
U E 5.4 // WCS-MCS changeover button on the machine control panel
FP M 18.0 // Free bit memory
= M 18.1 // Free bit memory
UN M 18.1
UN DB19.DBX 20.7 // Changeover via an SK on HMI 1 PLC cycle
SPB abc
UN DB19.DBX0.7 // Changeover, MCS/WCS
= DB19.DBX0.7
abc: U DB19.DBX0.7
= A 3.5 // MCS/WCS-LED on the machine control panel
#Ende#
© Siemens AG, 1998, 2000n
原创文章,作者:ximenziask,如若转载,请注明出处:https://www.zhaoplc.com/plc338366.html