有哪位大侠能提供一个840D SL的模板程序给我 看看 谢谢! 45015270@qq.com
我是一台卧式加工中心 B轴只做分度用。任意角度
我看了一下FC18 很怀疑这个程序的可行性。
OB1
CALL FC18 //"SpinCtrl"
Start := //in bool
Stop := //in bool
Funct := //in Byte
Mode := //in Byte
AxisNo:= //in int
Pos := //in real
FRate := //in real
InPos := //out bool
Error := //out bool
State := //out byte
FC18 功能
A #Start
= #C_LStart //temp bool
A #Stop
= #C_LStop //temp bool
L #Funct
T #C_LFunct //temp byte
L #Mode
T #C_LMode //temp byte
L #AxisNo
T #C_LAxisNo //temp int
L #Pos
T #C_LPos //temp real
L #FRate
T #C_LFRate //temp real
L B#16#12
T #C_LBlockNo //temp word
UC FB 15 //840D SL 程序库中没有这个功能块
L #C_LBlockFB15Return //temp word
L B#16#0
==I
JNB end
A #C_LInPos //temp bool
= #InPos
A #C_LError //temp bool
= #Error
L #C_LState //temp byte
T #State
AN #C_LError
SAVE
end: BE