10.4.3.19. StoPoCnd
10.4.3.19. StoPoCnd
This is the axis data save function command. This function is to save the location of the designated axis to the _StoPoDt[] system parameter when the input signal is entered, and to read the save value through the HRBASIC command.
Explanation | StoPoCnd (Store Pose Condition) : Command to save the axis data _StoPoDt[] : System parameter to retrieve the saved location (Read/Write) | ||
Grammar | StoPoCnd StoNr=<System parameter number>, DI=<Input signal number>, Axis=<Axis number> | ||
Parameter | System parameter number | Set the system parameter number to store the axis data | 1~10 |
Input signal number | Positive logic: When the input signal number goes up, the axis location designated by the axis number is saved to the parameter. Negative logic: When the input signal number goes down, the axis location designated by the axis number is saved to the parameter. | 1~255 | |
Axis number | The axis number to store the axis data When the axis designated by Axis is a rotational axis, the angle value is to be saved, while the length value will be saved in case of linear axis. | 1~16 | |
Example | StoPoCnd StoNr=1,DI=11,Axis=V1% (At the moment when DI11이 is entered, the location of the 5ths axis is saved to _StoPoDt1[V1%])
V1!=_StoPoDt2 Retrieve the value saved in the 2nd number of V1! (Real number parameter).
V1!=_StoPoDt[V1%] Can designate the location, to be retrieved, as V1%.
_StoPoDt2=100.0 Set the value saved in the 2nd number as 100.0.
_StoPoDt2=0 Set the value saved in the 2nd number as 0.
IF _StoPoDt2<50 OR _StoPoDt2>60 THEN 10 If the value saved in the 2nd number exceeds the 50~60 range, jumping to the row number 10 will be executed |