Hi all,
Yes it's me of the model railway level crossing again. All is going well, and the boom gates go up and down using servo motors and lights flash and bell rings etc, all coded and working with a switch.
However, I now need to detect the trains. Using LDRs. 13 of them. And I need associated variables for each to trigger/comparison values etc.
The 40M2 seems to allow only 28 full word variables.
Blocky's "set variable" for the 40M2, generates symbol commands "symbol var_Detect_Train = w27 " using a full-word variable. I do not need that resolution for LDR sampling, plus I do need a lot more variables than the 28 allowed for the 40M2. Can I get Blockly to generate a "byte" variable. ie. "symbol var_Detect_Train = b27". Of which I can have more than 28, but how many "byte" variables can I have on a 40M2?
I want to use Blocky, as it will do all I need, plus it lets you select variable names from a drop-down box, avoiding retyping numerous variable names and making typos. A lot of the logic will be "cloned", just using different variable names in each iteration.
Taa muchly in advance for any advice here.
Alan.
TOOT!
Yes it's me of the model railway level crossing again. All is going well, and the boom gates go up and down using servo motors and lights flash and bell rings etc, all coded and working with a switch.
However, I now need to detect the trains. Using LDRs. 13 of them. And I need associated variables for each to trigger/comparison values etc.
The 40M2 seems to allow only 28 full word variables.
Blocky's "set variable" for the 40M2, generates symbol commands "symbol var_Detect_Train = w27 " using a full-word variable. I do not need that resolution for LDR sampling, plus I do need a lot more variables than the 28 allowed for the 40M2. Can I get Blockly to generate a "byte" variable. ie. "symbol var_Detect_Train = b27". Of which I can have more than 28, but how many "byte" variables can I have on a 40M2?
I want to use Blocky, as it will do all I need, plus it lets you select variable names from a drop-down box, avoiding retyping numerous variable names and making typos. A lot of the logic will be "cloned", just using different variable names in each iteration.
Taa muchly in advance for any advice here.
Alan.
TOOT!