scada slaves

Moderator: Benj

Post Reply
DavidJ
Posts: 30
Joined: Fri Mar 21, 2008 11:16 pm
Has thanked: 1 time
Been thanked: 3 times
Contact:

scada slaves

Post 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 ?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: scada slaves

Post by Benj »

Hello,

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

DavidJ
Posts: 30
Joined: Fri Mar 21, 2008 11:16 pm
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: scada slaves

Post by DavidJ »

Hi

Enclosed files

Regards
David
Attachments
SCADA_Firmware_REV01.fcfx
(63.22 KiB) Downloaded 162 times
SCADA_SLAVE_TEST_REV01.fcsx
(8.88 KiB) Downloaded 159 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: scada slaves

Post 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.

DavidJ
Posts: 30
Joined: Fri Mar 21, 2008 11:16 pm
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: scada slaves

Post by DavidJ »

Ben

Thats great now works fine

Thanks for your assistance

David

Post Reply