Page 1 of 1

FC11: variables conflict - solved

Posted: Fri Jan 23, 2026 2:17 am
by viktor_aust
Hi
The Nano program has the timed interval, the interrupt on Int0 and the PWM component (Timer0).
All works OK
----------------------
After I add the modbus slave I have the error (during compiling):
: warning: #warning "PWM Channel Uses Resource Timer 0"
#warning "Period control register not available on target device, period will default to 255 + 1"
error: expected identifier or '(' before numeric constant
error: expected identifier or '(' before numeric constant
-------------------
Looks like Nano does not have enough timers.
Is it the case?
Should I find a different way to communicate and move away from the Modbus?

Re: FC11: Modbus conflict (Ard Nano)

Posted: Sun Jan 25, 2026 4:27 am
by viktor_aust
Hi again
I checked the program with FC10; OK.
However cannot compile wihout errors with FC11

Re: FC11: Modbus conflict (Ard Nano)

Posted: Thu Jan 29, 2026 7:02 pm
by viktor_aust
Hi again
Is it possible to have a look at the problem?
Thanks

Re: FC11: Modbus conflict (Ard Nano)

Posted: Fri Jan 30, 2026 9:48 am
by BenR
Hello,

Sorry for the delay, investigating for you now.

Re: FC11: Modbus conflict (Ard Nano)

Posted: Fri Jan 30, 2026 9:49 am
by Steve-Matrix
(I've just beat Ben to it I think)

I can see the problem and it will need a fix in some components and/or the actual Flowcode exe. But there is a workaround that should allow you to progress. The problem is that 4 of your global variables (text1, text3, text4 and text5) are clashing with some internal variables in a component. Just rename these (e.g. to "mytext1", etc) and it should compile ok again.

Re: FC11: Modbus conflict (Ard Nano)

Posted: Fri Jan 30, 2026 9:19 pm
by viktor_aust
Thank you Steve.
Will do.

Re: FC11: variables conflict - solved

Posted: Sat Jan 31, 2026 2:46 am
by viktor_aust
Thanks Ben and Steve.
Renaming the global variables solved the problem.