- 西門子6DD
- 西門子SIMATIC TDC
- 西門子伺服備件
- 西門子變頻器
- 西門子電源
- 西門子交換機(jī)
- 西門子電機(jī)
- 西門子PLC
- 西門子儀器儀表
- 西門子冷卻風(fēng)機(jī)
- 西門子停產(chǎn)備件
- 西門子低壓軟啟3RW40
- MDEXX(美德克斯)
- 西門子羅賓康變頻器
- 變頻器配件
- 西門子6GT識(shí)別系統(tǒng)
- 奧鋼聯(lián)冶金備件
- 西門子PCS7過程控制系統(tǒng)
- 伺服數(shù)控型S7-300
- 德國AK產(chǎn)品
- 德國TWK
- 德國派克PARKER
- 海德漢
- 西門子S7-200 SMART
- 利德華福變頻器功率單元
- 西門子硬件狗
- 西門子保護(hù)
- 電話: 010-64734946 64734947 64738638
- 傳真: 010-64738090
當(dāng)前位置:首頁 >> 公司新聞
SIMOTION中軸轉(zhuǎn)矩限幅控制命令代碼
信息來源: 發(fā)布時(shí)間:2017-07-17 08:56:26 點(diǎn)擊次數(shù):0
Axis_RED.DefaultAdditiveTorque := rAdditiveTorque
Axis_RED.DefaultTorqueLimitNegative := rTorqueLimitNegative
Axis_RED.DefaultTorqueLimitPositive := rTorqueLimitPositive
_enableAxisAdditiveTorque, _disableAxisAdditiveTorque,
_enableAxisTorqueLimitPositive, _disableAxisTorqueLimitPositive,
_enableAxisTorqueLimitNegative, _disableAxisTorqueLimitNegative
ST
(1) _enableaxisadditivetorque
If Axis_RED.AdditiveTorqueIn.State = INACTIVE and
Boenableaxisadditivetorque then
my_Ret_DINT := _enableaxisadditivetorque(
axis:=Axis_RED,
valuereferencetype:=VALUE,
additivetorquetype:=DEFAULT_VALUE,
nextcommand:=IMMEDIATELY);
end_if;
(2) _enableAxisTorqueLimitPositive
my_Ret_DINT := _enableaxistorquelimitpositive(
axis:=Axis_RED,
valuereferencetype:=VALUE,
torquelimittype:=DEFAULT_VALUE,
nextcommand:=IMMEDIATELY);
(3) _enableAxisTorqueLimitNegative
IF (boTorqueLimitNegative AND
Axis_RED.TorqueLimitNegativeIn.State = INACTIVE AND
boErrorTorque = FALSE) THEN
my_Ret_DINT := _enableaxistorquelimitnegative(
axis:=Axis_RED,
valuereferencetype:=VALUE,
torquelimittype:=DEFAULT_VALUE,
nextcommand:=IMMEDIATELY);
end_if;
(4) _disableaxisadditivetorque
8
Copyright ? Siemens
AG Copyright year
All rights reserved
IF Axis_RED.AdditiveTorqueIn.State = ACTIVE AND bodisableadditivetorque
then
my_Ret_DINT := _disableaxisadditivetorque(
axis:=Axis_RED,
nextcommand:=IMMEDIATELY);
End_IF;
(5) _disableAxisTorqueLimitPositive
IF Axis_RED.TorqueLimitPositiveIn.State = ACTIVE AND … then
my_Ret_DINT := _disableaxistorquelimitpositive(
axis:=Axis_RED,
nextcommand:=IMMEDIATELY);
(6) _disableAxisTorqueLimitNegtive
IF Axis_RED.TorqueLimitNegtiveIn.State = ACTIVE AND … then
my_Ret_DINT := _disableaxistorquelimitnegtive(
axis:=Axis_RED,
nextcommand:=IMMEDIATELY);