Please read in driver manual about enable input.
Some driver need to enable by Enable input, in other model Enable input - Disable motion command.
By the way - is it motor hold position when driver is powered? If driver is Disabled - motor do not hold position.
crash888's problem was that he wanted the value of the operand (COUNTER2) to be retained when the PLC is rebooted (retain checkbox was checked). He found that instead it was being reset to zero. Gabriel Franco correctly noted that crash888 also had a value entered in the box for Initial Value, so while the value was retained, it was immediately being overwritten on the first scan by the value (0) in the Initial Value box.
Unitronics needs to automatically uncheck the retained value checkbox and grayout the feature when something is entered into the Initial Value box, or grayout the Initial Value box when the retain is checked, since they are contradictory.
maybe (or for sure) I misunderstood what crash888 said...i though that crash888 was just trying to put the PC and the PLC online (without download the project)...however I did a check and the retain variable take the last value that these has after every reboot and also after a "download" of the project (same project)...just if you select "reset retain variables" these will be reset at the initial value...so...what I am wrong or what I am not understanding about the issue/question (seriously)?
The program in Kratmel's video link is Modbus Poll. From looking at it quickly, but not understanding the spoken language (which I think is Thai), it appears that some control parameters are done at 255 & 256 which might be a way of you doing it with the PC. I really think it's worthwhile in your case to fiddle with the sensor using a 485 system on your PC.
Have you tried grounding the green in between steps 4 & 5 already mentioned? The manual says either leave floating or ground it, but maybe grounding is essential.