tempname24756
Member
Basically I have a digital value I need to scale down using this equation:
'end_value = (D1-1000)/100' but I'm having trouble writing it down to my program.
I've created a local label which is of a VAR_CONSTANT type and the data type is word[signed], the value of this variable is 1000.
At the moment it looks like this
If I've understood this correctly the new value should be stored in 'new_var' but it remains 0. I'm out of ideas and I've tried to read Mitsubishi's "Q-series basic course(for GX developer)" manual.
The contacts and their names does not matter at the moment because all I want to do is (D1-1000)/100. I can add the code to the real program at a later stage when I have solved my issue.
Using GX works2
'end_value = (D1-1000)/100' but I'm having trouble writing it down to my program.
I've created a local label which is of a VAR_CONSTANT type and the data type is word[signed], the value of this variable is 1000.
At the moment it looks like this
-|/|--------[-P D1 var_1000 new_var]
If I've understood this correctly the new value should be stored in 'new_var' but it remains 0. I'm out of ideas and I've tried to read Mitsubishi's "Q-series basic course(for GX developer)" manual.
The contacts and their names does not matter at the moment because all I want to do is (D1-1000)/100. I can add the code to the real program at a later stage when I have solved my issue.
Using GX works2
Last edited: