Scada Software how to use Comport?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Scada Software how to use Comport?

Post by stefan.erni »

Hi
Is there a sample or info how to how use a comport with scada to send/receic data via serialport from the PC?

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 Software how to use Comport?

Post by Benj »

Hello,

Under Tools should be a UART SCADA component that allows simple COM port communications in SCADA mode.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Scada Software how to use Comport?

Post by stefan.erni »

Hi Ben

This I saw but there is no component command for it, even the comport shows the macros in the propertis

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 Software how to use Comport?

Post by Benj »

Hello,

You need to use the simulation tab of the component macro icon or use the simulation icon to see the component macros.

Alternatively you can use the Project Explorer window.
SS1.jpg
SS1.jpg (52.27 KiB) Viewed 3303 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Scada Software how to use Comport?

Post by stefan.erni »

Hi Ben

With the SCADA I can write data to the disk of the computer.Thats great....
The comport is not working. I controlled the signal what the computer received from the PiC-board with terminal program. It's looks ok. On COM40.
Why there is this simulations code? Is this correct?
And can SCADA receive signals from the comport and show it on the display?

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 Software how to use Comport?

Post by Benj »

Hello,

The COM port DLL we use is known to work very well so it's strange you're having issues with communications.

1) Have you ensured the port is not locked by another application.
2) Have you connected the hardware before running Flowcode or the Port may not appear in the Ports list.
3) If all else fails what version of Windows are you running? Is it up to date with updates? Have you installed Microsoft redistributable packs?
Why there is this simulations code? Is this correct?
Yes it's been there in the embedded mode since v6 and it's basically way of us informing the user that the macro will not download to a target device.
And can SCADA receive signals from the comport and show it on the display?
It certainly can.

If you're in doubt then please post your project file so far and we can take a look at it for you to make sure you're on the right track.

Under File -> Open Template is an example for an Arduino Uno, one project for the embedded side and another for the SCADA side communicating via the built in Arduino COM port.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Scada Software how to use Comport?

Post by stefan.erni »

Hi Ben

Now I understood a little more. I have to use the simulation. Yes, it's wonderful now. Many Thanks. It works well with the COMport and the PIC. I also studied the example. I see that the PC program asks the Arduino and an answers expected.But my PIC sends data like crazy, is there something like an interrupt for the COM port?

Post Reply