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?
FC11: variables conflict - solved
-
viktor_aust
- Posts: 19
- http://meble-kuchenne.info.pl
- Joined: Fri May 17, 2024 1:04 am
- Has thanked: 8 times
- Been thanked: 3 times
FC11: variables conflict - solved
Last edited by viktor_aust on Sat Jan 31, 2026 2:45 am, edited 1 time in total.
-
viktor_aust
- Posts: 19
- Joined: Fri May 17, 2024 1:04 am
- Has thanked: 8 times
- Been thanked: 3 times
Re: FC11: Modbus conflict (Ard Nano)
Hi again
I checked the program with FC10; OK.
However cannot compile wihout errors with FC11
I checked the program with FC10; OK.
However cannot compile wihout errors with FC11
- Attachments
-
- FC11_Nano_25Jan26_Err.fcfx
- (42.03 KiB) Downloaded 23 times
-
- FC10_Nano_25Jan26_OK.fcfx
- (43.05 KiB) Downloaded 18 times
-
viktor_aust
- Posts: 19
- Joined: Fri May 17, 2024 1:04 am
- Has thanked: 8 times
- Been thanked: 3 times
-
BenR
- Matrix Staff
- Posts: 2109
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 560 times
- Been thanked: 744 times
Re: FC11: Modbus conflict (Ard Nano)
Hello,
Sorry for the delay, investigating for you now.
Sorry for the delay, investigating for you now.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
Steve-Matrix
- Matrix Staff
- Posts: 1728
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 250 times
- Been thanked: 408 times
Re: FC11: Modbus conflict (Ard Nano)
(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.
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.
-
viktor_aust
- Posts: 19
- Joined: Fri May 17, 2024 1:04 am
- Has thanked: 8 times
- Been thanked: 3 times
-
viktor_aust
- Posts: 19
- Joined: Fri May 17, 2024 1:04 am
- Has thanked: 8 times
- Been thanked: 3 times
Re: FC11: variables conflict - solved
Thanks Ben and Steve.
Renaming the global variables solved the problem.
Renaming the global variables solved the problem.