Page 1 of 1

Compile Error USB Slave Component

Posted: Wed Apr 18, 2018 9:09 am
by QMESAR
Hello Team.
I am having a syntax error report when I compile this simple example Flowchart with a PIC18F4550 Selected as device.
1.JPG
1.JPG (25.13 KiB) Viewed 4538 times
The flow chart contains only a main and the slave service makro attached my flowchart

Please help me out :D
I am still having problems to install the driver on WIN10 however it worked in WIN7 (I am using WIN7 machine at the moment)
USB_Slave.rar
(77.39 KiB) Downloaded 241 times

Re: Compile Error USB Slave Component

Posted: Wed Apr 18, 2018 10:43 am
by Benj
Hi Peter,

This should work correctly now. The Slave Macro property was empty, I've now populated this with the slave_service name of your service macro.
Test_USB_Slave.fcfx
(9.08 KiB) Downloaded 247 times

Re: Compile Error USB Slave Component

Posted: Wed Apr 18, 2018 12:02 pm
by QMESAR
Hi Ben.

I am sorry I am trying to find my way through this :D
Thank for the updated Flowchart however it now complains that the RunsSlaveservice ()has to few parameters :oops:
I hope soon I will be off your neck with this !
1.png
(21.98 KiB) Downloaded 2136 times

Re: Compile Error USB Slave Component

Posted: Wed Apr 18, 2018 12:59 pm
by Benj
Hi Peter,

Aha yes sorry your slave service macro has a byte parameter so this also has to be specified in the component properties.
USBSlave.jpg
USBSlave.jpg (94.94 KiB) Viewed 4532 times

Re: Compile Error USB Slave Component

Posted: Wed Apr 18, 2018 1:42 pm
by QMESAR
Hi Ben,
Thank you so much, :D
The issue is solved and I have understood the problem :D