¿ªÔÆÌåÓý

LogixNG POM #logixng


 

I am using the POM function in LogixNG.
Currently setting a CV = to an IM value.
Works good.
Now I'd like to ADD an IM value to the CV.
In the snip I started out trying to just add a constant (50) but that didn't work.
I think I need to use the Formula tab but not sure of the syntax.?
--

Many thanks in advance!

Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR

Windows 7 Pro / Java 11 / JMRI v5.10
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
(4) Samsung A7 10.4" Tablets
Fully Kiosk/Engine Driver v2.37.187
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1


 

¿ªÔÆÌåÓý

Vinny,

> Now I'd like to ADD an IM value to the CV.
> In the snip I started out trying to just add a constant (50) but that didn't work.
> I think I need to use the Formula tab but not sure of the syntax.

What error message do you get?

Daniel


On 2025-05-21 22:39, Vinny DeRobertis via groups.io wrote:

I am using the POM function in LogixNG.
Currently setting a CV = to an IM value.
Works good.
Now I'd like to ADD an IM value to the CV.
In the snip I started out trying to just add a constant (50) but that didn't work.
I think I need to use the Formula tab but not sure of the syntax.?
--

Many thanks in advance!

Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR

Windows 7 Pro / Java 11 / JMRI v5.10
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
(4) Samsung A7 10.4" Tablets
Fully Kiosk/Engine Driver v2.37.187
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1


 

Attached error.


 

I added Vinny to the symbol table.
now the error is gone but it's not doing what I expect.
I am writing to cv63 which is master volume. I have an ng for up and one for down. I want to increase or decrease cv63 by the # in IM1.


 

¿ªÔÆÌåÓý

Vinny,

It seems that you want to have a memory with the current volume. And then a ConditionalNG that copies the value of the memory to a local variable. You then does the addition/subtraction and store the new value in the memory. And then you do the POM.

Note that memories usually uses strings, not numbers, so you might need to convert the string to a number.

Daniel


On 2025-05-23 00:12, Vinny DeRobertis via groups.io wrote:

I added Vinny to the symbol table.
now the error is gone but it's not doing what I expect.
I am writing to cv63 which is master volume. I have an ng for up and one for down. I want to increase or decrease cv63 by the # in IM1.


 

Ok that gives me something to chew on. Thank you Daniel!


 

Got it working.
Thanks again Daniel!