Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2017-02-04 09:35:47

hubc
Member
Registered: 2016-09-05
Posts: 60

RexDraw - downloading configuration and RexCore behavior

Hi all,

Recently while working on some Rex project on a working system, I was wondering what is happening to the RexCore device outputs (in my specific case - RexDuino Arduino Uno) while downloading new configuration to target?
When device is downloading new target is RexCore pausing execution? If so, how that is going to affect output of the device (for example digital pullup outputs will go to default - high state and analog output to '0'?)

Btw I noticed option in 'Download configuration to the target' window - Method: Synchronize or Expert mode - what it is for?


Regards
Hubert

Offline

#2 2017-02-06 11:10:59

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: RexDraw - downloading configuration and RexCore behavior

Hi Hubert,
when you download a new executive, RexCore shuts down the original one, switches to the new one and starts from scratch. So the answer is that the Rexduino slave is uncontrolled for a short period. The slave does not receive any commands therefore it remains in the last state. As soon as the new executive (Rexdino master) is started, it sends initialization commands to the slave and all pins are configured to the desired mode. The initial values of the digital outputs depend on the values in the algorithm. The analog output will go to zero for a short while and afterwards it will follow the value from the algorithm. If you need to set the outputs to a defined state, you can do so in the exit() procedure of the Rexduino master.

The expert mode of Download dialog allows you to download e.g. only a new version of the HMI without restarting the running algorithm. Typically you develop the algorithm first and afterwards you work on the HMI.

Kind regards,
Jaroslav

Offline

#3 2017-02-07 09:22:36

hubc
Member
Registered: 2016-09-05
Posts: 60

Re: RexDraw - downloading configuration and RexCore behavior

OK, thank you Jaroslav for explanation!


Hubert

Offline

Board footer

Powered by FluxBB