Hello Tom,
On the machine I have already mounted Home switches on very end of axis in positive direction, machine homing in positive direction and should assign a value lets say equal to work range.
I can not understand what I'm doing wrong in modified code below, I replaced a Zero(axis) with Pos(axis)=variable command but It just wont compile.
Regards
Mateusz
Homing in positive direction and assign value
Moderators: TomKerekes, dynomotion
Homing in positive direction and assign value
- Attachments
-
- SimpleHomeIndexFunctionTest.c
- (841 Bytes) Downloaded 95 times
-
- SimpleHomeIndexFunction.c
- (2.23 KiB) Downloaded 105 times
- TomKerekes
- Posts: 2741
- Joined: Mon Dec 04, 2017 1:49 am
Re: Homing in positive direction and assign value
Instead of:
The syntax is:
HTH
Code: Select all
Pos(axis)=homepos; //Assign declared position
Code: Select all
chan[axis].Position=homepos; //Assign declared position
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.