ECIO40P-16 scada / APP USB coms

For general Flowcode discussion that does not belong in the other sections.
Post Reply
DAVIDJOINER
Posts: 140
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

ECIO40P-16 scada / APP USB coms

Post by DAVIDJOINER »

Hi

I am using the dspic ECIO40P-16 and note there is no Scada / APP Component for this in FC9 but there is for other ECIO's but also they appear use a seperate serial COM port for connection to the emdeded slave


I am asking ask as i would really like to use in my application the ECIO40P-16 USB serial in the embedded and the APP to control the embeded slave over USB serial rather than a separate com port is this possible

Any ideas

David

BenR
Matrix Staff
Posts: 1951
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 697 times

Re: ECIO40P-16 scada / APP USB coms

Post by BenR »

Hi David,

Yes this is possible, we currently control the two 8-bit PICs via the USB connection.

I'll get it on the list and see if it's something we can do fairly quickly for you.

BenR
Matrix Staff
Posts: 1951
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 697 times

Re: ECIO40P-16 scada / APP USB coms

Post by BenR »

Hi David,

I just realised that the BL0032 board features the same chip and so the firmware for this should also run on the ECIO40P16. You will need to change the target device in the project options or just use mLoader to transfer the hex file onto the ECIO and it should run.

https://www.flowcode.co.uk/wiki/index.p ... DA_Slaves)

Let us know how you get on.

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: ECIO40P-16 scada / APP USB coms

Post by DAVIDJOINER »

HI Ben

I had already relealised that as well and was trying this out last week that but the issue i also eluded to was is it possible to run the embeded slave through the USB port

All i can seem to do is select a com port rather than the usb port on the SCADA \ APP

David

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 701 times

Re: ECIO40P-16 scada / APP USB coms

Post by medelec35 »

Hi David,
After the firmware is loaded on to ECIO40P - 16, it should create a serial COM port (VCP).
I have not tried with that device, but I have with a ECIO40P.
As soon as its plugged in to the USB it generate this:
VCP.png
VCP.png (10.27 KiB) Viewed 5138 times
Check what the COM port is with the device manager, and try selecting it within the APP developer.
Also within properties of ECIO40P - 16 I would recommend changing Log Mode from Fixed Statistics to Command Log.
If you then run the console and select SCADA Tab, you will see if there is communications or not when running the App developer
If all working then you will not see the words Comms Error.
Martin

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: ECIO40P-16 scada / APP USB coms

Post by DAVIDJOINER »

Hi Ben

That all makes sense now

I tried what you suggested and works fine

Regards
David

Post Reply