Soggy Canuck
Lifetime Supporting Member
I'm banging my head on a wall here, and I suspect this is going to involve a "how could I have missed that" when I find the solution.
To my problem: Omron CJ1M with a MAD42 module. Using a 0-10V signal from the machine main drive to generate two separate follower signals. Each of the followers has a separate adjustment from two potentiometers feeding additional analog input channels of the MAD module. I worked out some basic math to use the potentiometer inputs to generate a percentage of the main drive analog signal and feed this into the 2 analog output channels.
The math worked like a charm but the output was not suitable to the machine requirements.
Enter the APR instruction. I set up a pair of these to reshape the 0-10V main drive signal to suit the follower equipment requirements.
Here's where it went sideways on me.
The output of the APR instruction was dropped into a DM set to Channel(HEX). Monitoring this it shows up as a hex value, but when looking at the DM as it enters the basic math section its showing up as a Signed Decimal Value.
How do I force the value to stay in hex? It enters a FLT instruction as a "+XXXX" value) and the instruction will not process.
To my problem: Omron CJ1M with a MAD42 module. Using a 0-10V signal from the machine main drive to generate two separate follower signals. Each of the followers has a separate adjustment from two potentiometers feeding additional analog input channels of the MAD module. I worked out some basic math to use the potentiometer inputs to generate a percentage of the main drive analog signal and feed this into the 2 analog output channels.
The math worked like a charm but the output was not suitable to the machine requirements.
Enter the APR instruction. I set up a pair of these to reshape the 0-10V main drive signal to suit the follower equipment requirements.
Here's where it went sideways on me.
The output of the APR instruction was dropped into a DM set to Channel(HEX). Monitoring this it shows up as a hex value, but when looking at the DM as it enters the basic math section its showing up as a Signed Decimal Value.
How do I force the value to stay in hex? It enters a FLT instruction as a "+XXXX" value) and the instruction will not process.