IC693ACC300LT
RAC2.3-250-460-L00-W1 INDRAMAT AC MAIN SPINDLE DRIVE
RAC2.3-250-460-L00-W1-K15 INDRAMAT
INDRAMAT AC MAINSPINDLE DRIVE KDA 3.2-100-300-A00-U1
INDRAMAT MAC115B-0-GS-3-C/130-A-0/S001 SERVO MOTOR NEW
INDRAMAT KDA 3.2-150-3-APO-U1 REMAN. KDA321503APOU1
INDRAMAT/REXROTH DKS01.1-W100A-DL02-01-FW *NIB*
INDRAMAT INDUCTION MOTOR 2AD160C-B350B1-BS03-H2N2
INDRAMAT INDUCTION MOTOR 2AD160C-B050A1-BS06-D2N1
INDRAMAT DDC01.2-N100A-D REMAN. DDC012N100AD
Indramat R911268887 07W31 TVD 1.3-08-03 Power Supply - New, No Box
INDRAMAT RAC-2.3-200-460-AOI-WI USPP RAC23200460AOIWI
RAC2.2-250-460-A0I-W1 INDRAMAT SPINDLE DRIVE **1 YR WRT
BTV30.2PA-64R-10C-D-FW INDRAMAT
RAC3.1-150-460-L00-W1-220 INDRAMAT AC MAIN SPINDLE DRIV
INDRAMAT AC MAIN SPINDLE DRIVE RAC 2.2-200-460-AP0-W1
INDRAMAT RAC-3.5-100-460-A01-W1-220 USPP RAC35100460A01W1
RAC2.2-150-460-A00-WI INDRAMAT
INDRAMAT SERVO DRIVE RAC2.2-150-460-A00-Z1
INDRAMAT KDV1.3-100-220/300-220 USPP KDV1310022030022
INDRAMAT DDC01.2-N200A-DS01-02-FW USPP DDC012N200ADS01A
INDRAMAT INDUCTION MOTOR 2AD132D-B350A1-AS13-A2N1
INDRAMAT 2AD160C-B350A1-BS03D2N1 USPP 2AD160CB350A1BS0
INDRAMAT FWA-RD500*-301-05VRS-MS-RS51 DRIVE 500 FWARD50030105VRSMSRS51
INDRAMAT FWA-RD500*-301-04VRS-MS-RS51 SPEED 500 FWARD50030104VRSMSRS51
INDRAMAT DDC01.2-N200A-DS68-00-FW USPP DDC012N200ADS680
INDRAMAT PERMANENT MAGNET MOTOR MDD112C-N-015-N2M-13
INDRAMAT DDC01.1-K050A-DS01-01 USPP DDC011K050ADS010
MAC115B-0-GS-3-C/130-A-0/S001 INDRAMAT
MAC115B-0-GS-3-C/130-B-0/S001 INDRAMAT
Bosch Rexroth Indramat 180c-b350a1-bs03-b2v1 | £5000.00
Bosch Rexroth Indramat RAC3.1-150-460-A00-W1-220 | 12mo warranty Inc UK VAT
Indramat RAC3.5-150-460-A00-W1-220 | 12mo warranty |Free EU Shipping |Inc UK VAT
MAC115D-0-CS-4-C/130-A-2/WI520LV/S001 INDRAMAT
MAC115D-2-CS-4-C/130-A-2/WI520LV/S001 INDRAMAT
INDRAMAT MDD115B-N-030-N2M-130GR1 USPP MDD115BN030N2M13
INDRAMAT 2AD134C-B35OA1-DS37-C2N1 NSPP 2AD134CB35OA1DS3
INDRAMAT 2AD132D-B35OB1-AS03-B2N1 NSPP 2AD132DB35OB1AS1
INDRAMAT DDS02.2-W200-B USPP DDS022W200B
"INDRAMAT AC SERVO COMPACT CONTROLLER "DKS01.1-W100A-DS01-02-FW
Spin Scan Chassis w Indramat controllers 0090-90520, AMAT 9000 9200 9500 implant
Indramat DKS01.1W100A-D Digital Servo Control
INDRAMAT PPC-RO1.2N-NV2-FW NSFP PPCRO12NNV2FW
INDRAMAT TWM1.1-100-300-W1/115 NSFP TWM11100300W1115
問:FUNCTION_BLOCK FB_HOMING
VAR_INPUT
myaxis : posaxis;
starthoming : BOOL;
offset : LREAL;
END_VAR
VAR
myRetDINT : DINT;
mystarthomingrtrig : r_trig;
mystarthoming : BOOL;
myaxishomedrtrig : r_trig;
END_VAR
VAR_OUTPUT
my_axishomed : BOOL;
END_VAR
mystarthomingrtrig(clk := starthoming);
myaxishomedrtrig(clk := my_axishomed);
IF mystarthomingrtrig.q THEN
mystarthoming := TRUE;
ELSIF myaxishomedrtrig.q THEN
mystarthoming := FALSE;
END_IF;
myaxis.setconfigdata.typeofaxis.numberofencoders.
encoder_1.inchomingencoder.proceedshiftpos := offset;
IF mystarthomingrtrig.q AND myaxis.control=ACTIVE THEN
myRetDINT :=
_homing(
axis := myaxis,
homingmode := ACTIVE_HOMING,
homebtype :=DIRECT,
homeb := 0.0,
velocityprofile := TRAPEZOIDAL,
mergemode := IMMEDIATELY,
nextcommand := WHEN_BUFFER_READY,
commandid := _getcommandid()
);
END_IF;
IF myaxis.bingstate.homed = yes THEN
my_axishomed := TRUE;
ELSE
my_axishomed := FALSE;
END_IF;
END_FUNCTION_BLOCK
問題補(bǔ)充:這段程序,前幾段關(guān)于變量的定義基本看的懂,后面就不怎么懂了,myaxis.setconfigdata.typeofaxis.numberofencoders.
encoder_1.inchomingencoder.proceedshiftpos := offset,又是上面意思呢,myRetDINT,是什么意思? 那位幫忙解釋下?
答:這是一段主動(dòng)回零的程序。
可以參考一下資料
1、程序首先定義了兩個(gè)上升沿,當(dāng)starthoming和axishomed來臨時(shí)觸發(fā)兩個(gè)上升沿。
2、當(dāng)上升沿mystarthomingrtrig觸發(fā)后,賦值變量mystarthoming
表示開始回零,當(dāng)上升沿myaxishomedrtrig觸發(fā),變量復(fù)位,回零結(jié)束(這個(gè)上升沿后面將觸發(fā))
3、myaxis.setconfigdata.typeofaxis.numberofencoders.
encoder_1.inchomingencoder.proceedshiftpos := offset;
是設(shè)定一個(gè)偏移量,類型為L(zhǎng)REAL,具體變量解釋可以點(diǎn)擊相應(yīng)的軸看symbol browse,找到這個(gè)變量,看它的屬性。
4、前面那個(gè)上升沿觸發(fā),并且軸使能后開始回零指令。myRetDINT只是在執(zhí)行回零指令_homing()所要求定義的返回值,在VAR里面也定義了,可以隨便定義名稱的,是一個(gè)DINT型,有時(shí)可以根據(jù)這個(gè)返回值確定程序執(zhí)行的狀態(tài)。
5、當(dāng)回零完成后,用軸的回零變量置位my_axishomed, 變量my_axishomed同時(shí)又觸發(fā)上面的上升沿程序。
廈門潤(rùn)星貿(mào)易有限公司
聯(lián)系人:吳偉杰
QQ:2563095702
郵箱:2563095702@qq.com
電話:0592-6895320
手機(jī):18030263579
傳真:0592-6034581〔備注吳偉杰收〕