Page 1 of 1

Homing in positive direction and assign value

Posted: Fri Jun 11, 2021 8:01 pm
by Mateusz
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

Re: Homing in positive direction and assign value

Posted: Fri Jun 11, 2021 8:12 pm
by TomKerekes
Instead of:

Code: Select all

	Pos(axis)=homepos;  //Assign declared position
The syntax is:

Code: Select all

	chan[axis].Position=homepos;  //Assign declared position
HTH