Author Topic: Changing variables in simulation  (Read 6519 times)

Ron

  • Guest
Changing variables in simulation
« on: March 27, 2002, 03:00:36 PM »
Hi

How do I change variables in simulation.  I want to use a high speed counter to monitor an encoder.  This will in turn drive a stepper motor.  I have tried to use the edit button in the simulator but it doesn't seem to work.  There is a link to this in the online help PDF but it does not work either.  

Thanks in advance
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re: Changing variables in simulation
« Reply #1 on: March 27, 2002, 05:45:33 PM »
Yes, you change the variables by clicking on the "Edit" button and then enter an expression to change it.

E.g. to change HSCPV[1] to value 0, just write in:

  HSCPV[1] = 0

and then press <Enter>. The value of HSCPV will then be changed to the new value.  However, note the action where HSCPV passing through a set value to trigger a custom function can not be simulated because that is an interrupt-driven phenomenon.  You can test the result of a custom function by connecting an unused input or internal relay bit to the custom function and trigger it by left clicking on that input. That will allow you to simulate the action.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS