PV780 Digital Inputs to change TSC1 speed control

Discuss issues and ideas you have to configuring displays with PowerVision
broesch
Posts: 10
Joined: Thu Jun 02, 2016 5:07 am

PV780 Digital Inputs to change TSC1 speed control

Post by broesch » Tue Nov 08, 2016 8:50 am

My question is how to use the digital inputs 1,2 and 3 to change the value of the engine speed in a TSC1 message in the following way:
digital input 1 on -> TSC1 message sends idle speed (800 rpm)
digital input 2 on -> TSC1 message sends max speed (1900 rpm)
digital input 3 on -> TSC1 message sends predefined speed from stored variable (i.e. 1500 rpm).
All speed messages should be send on last value until a different input is activated.
If more than one Input is active (on) at the same time, the speed value should go back to idle (800 rpm).
For now, sending TSC1 messages works fine using Free Form Numeric Messages, controlled by some buttons of the display.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: PV780 Digital Inputs to change TSC1 speed control

Post by stalley » Tue Nov 08, 2016 1:27 pm

Hello broesch,

There are others who would have a different approach, but my idea is to put three calculation events on your TSC1 speed variable.

Event1 : IF (IO.Digital 1 = 1, 800, IF(AND(IO.Digital 1 = 0, IO.Digital 2 = 0, IO.Digital 3 = 0), 0, TSC1 speed variable))
Event2 : IF (IO.Digital 2 = 1, 1900, IF(AND(IO.Digital 1 = 0, IO.Digital 2 = 0, IO.Digital 3 = 0), 0, TSC1 speed variable))
Event3 : IF (IO.Digital 3 = 1, Predefined Speed Variable, IF(AND(IO.Digital 1 = 0, IO.Digital 2 = 0, IO.Digital 3 = 0), 0, TSC1 speed variable))

Put Event1 as the On change event on your digital input Programming variable, IO.Digital 1. Similarly, Event2 would go on IO.Digital 2 and Event3 would go on IO.Digital 3.

This is a little different logic than you are asking for though, since without some additional logic, whichever input changes to 1 last wins. There will be other things to consider such as, what happens if an input is 1 when the display is first powered up? Do you want the display to immediately start transmitting a requested speed of 1900 RPMs or whichever input is 1?

Since you already have some logic working, you should be able to substitute the On change event from the digital inputs for the key press events you are already using.

Hopefully this can get you started.
Sara Talley
Software Engineer
Enovation Controls
broesch
Posts: 10
Joined: Thu Jun 02, 2016 5:07 am

Re: PV780 Digital Inputs to change TSC1 speed control

Post by broesch » Thu Nov 24, 2016 2:03 am

Hello stalley,

we've tested it in a similar way and
many thanks, that worked!