A possibility like #ifdef in HAL files?

More
31 Jan 2021 10:12 #197213 by HansU
Hi,
is there a possibility to define a value (like #define in C) and then use something like #ifdef in the HAL files?
For example you want to use nearly a same config on two machines/computers and they decide only in a very few points.

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 21:17 #197246 by cmorley
HALcmd has no logic commands built in.
You could use HAL to load say a python program though and use the python program to do the logic.
Might be akward, might be ok - depends on what you really want to do.

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 22:22 #197250 by phillc54

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 22:44 #197254 by cmorley
Oh yes - I forgot about that.

Please Log in or Create an account to join the conversation.

More
01 Feb 2021 18:50 #197325 by HansU
Not really what I was looking for, but thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum