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 ?
scada slaves
Moderator: Benj
- 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
Hello,
Can you post your program so we can see what you're doing and try to replicate the issue.
Can you post your program so we can see what you're doing and try to replicate the issue.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 30
- Joined: Fri Mar 21, 2008 11:16 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: scada slaves
Hi
Enclosed files
Regards
David
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
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel