Author Topic: A nice feature suggestion to STEPMOVE  (Read 12686 times)

cch1955

  • Full Member
  • Posts: 198
  • Automated Machine Systems Designer
    • View Profile
A nice feature suggestion to STEPMOVE
« on: April 20, 2016, 09:56:32 AM »
The addition of descriptive labels on variables has greatly helped creating programs rapidly.

In the STEPMOVE command, when you specify a relay to be activated at the end of the STEPMOVE it would be very helpful to also allow the use of an underscore and a descriptive label identifying the relay being activated.

STEPMOVE 1,22000,36  is more cryptic than STEPMOVE 1,22000,36_X_PLUS_DONE_RLY

Appreciate your efforts on the development of this fine program.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:A nice feature suggestion to STEPMOVE
« Reply #1 on: April 21, 2016, 08:30:29 AM »
Thank you for your feedback. It is most appreciated.

One immediate solution I can think of is to use a #Define label for your relay and assign it the relay number. That way it can be changed any time later and is also readable.  So if you have defined your label as "XPLUS_DONE_RLY  and assign it the number 36 that will work.

In the future the relay number should be allowed to be replaced by the relay label name. We will send this as a wish list to development team.

Email: support@triplc.com
Tel: 1-877-TRI-PLCS

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:A nice feature suggestion to STEPMOVE
« Reply #2 on: April 21, 2016, 07:34:54 PM »
Actually what you wish for is available in TL6 and TL7 for quite a while.

E.g. If you define relay #36 with the label "36_X_PLUS_DONE you can then use it in the following statement:

STEPMOVE 1,1000,36_X_PLUS_DONE

The program will compile and run correctly. I just tested it. If your version does not support this then please upgrade to the latest version as since version 6.50 many great new features have been added to the software. Upgrade is always free - just follow Help and select "TRiLOGI Upgrade" link to obtain the latest versions.


« Last Edit: April 21, 2016, 07:37:08 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS