Page 1 of 1

scada slaves

Posted: Fri Aug 09, 2019 12:22 pm
by DavidJ
Hi

Have tried to use Scada slaves using arduino
But have had only limited success

The setoutpin function works fine no problem

But when i try to use Getinputpin function
ie when i toggle PIN 8 high and low on the arduino

The Getinputpin function does not change in the 'Arduino' console window or the 'in' varaiable and reads 1 all the time

However I can see the status correctly change in the 'UART1' console window on the Scada

ie 8 1 129 and 8 0 129

So it would appear the Scada is seeing the change from the arduino but not reporting it fully correct

Any ideas ?

Re: scada slaves

Posted: Fri Aug 09, 2019 3:06 pm
by Benj
Hello,

Can you post your program so we can see what you're doing and try to replicate the issue.

Re: scada slaves

Posted: Fri Aug 09, 2019 4:31 pm
by DavidJ
Hi

Enclosed files

Regards
David

Re: scada slaves

Posted: Mon Aug 12, 2019 11:21 am
by Benj
Hi David,

I believe I have found and fixed the problem for you.

The SCADA Slave firmware was receiving the command and responding correctly but the Flowcode simulation had a chance of getting out of sync with the response. I have now added code to the initialise function of the SCADA Slave component so that it re-syncs itself and this seems to be working nicely for me now.

I've pushed the changes to the v8 update system and also updated all the other SCADA Slave components with the fix.

Let me know how you get on.

Re: scada slaves

Posted: Mon Aug 12, 2019 9:33 pm
by DavidJ
Ben

Thats great now works fine

Thanks for your assistance

David