Move value to analoge output. How? AX521
AC500, 4-20mA
In codesys, how do I assign a value to an anloge output? What blocks to use? I can't figure out how to assign the actual value in numbers...
The condition is:
Variable 1 TRUE -> variable 2 TRUE -> send 12mA to analoge output 1 which is a valve, the ABB module I am using is AX521.
Do i have to use MOVE block?
Thanks.
Voted best answer
Answers
Thanks! I have used the LIN_TRAFO to scale my signal as you mentioned, that worked great.
But how to move the value to the channel? I.e. if i want to move 12mA of value to a channel to close the valve 50%.
for this you have to assign that variable into analod module..
If you are using control builder then just assign that same variable in analog module which you have defined in control builder.
Yes, I'm using control builder. And I have assigned the variable in the module correctly.
But I still don't know where to put the value to send to the channel... Earlier I have used MOVE blocks, is this what to use? It is a fixed value.
If someone can please post a screenshot it would be great.
Set channel 0 of AX521 to 4-20mA:
Assign Variable AO_Value to channel 0 (AO_Value is the name of variable - example):
Somewhere in application you should write:
if Variable_1 and Variable_2 then
AO_Value:=13824; (*13824 = 27648 / 2 or 50% of AO value*)
else
AO_Value:=27648; (*this value will be written to the output if Variable_1<>true or Variable_2<>true *)
end_if;
Add new comment