Help - Search - Members - Calendar
Full Version: Controllogix5000 Read tag value by a string
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
AVH
Hi

We are using a controllogix5000 Ver.16, and have a lot of motor digital control.
So we are using one UDT ( User Defined Type) for every motor, in that
UDT ther is also a alarm timer.
So i the motor is not runnig after a time, there is a alarm on the motor.

MotorM1.AlarmTmr.Pre
MotorM2.AlarmTmr.Pre
MotorM3.AlarmTmr.Pre
.......
MotorM99.AlarmTmr.Pre

From the scada system we like to adjuste the time PRE value.
Instedof have 100 timer`s Tages in the scada, we like to use a index.
So we have a "MotorName" tag as a string, and in the plc we add another string ".AlarmTmr.Pre",
so the complet string "ReadTimer" has the tekst "MotorM1.AlarmTmr.Pre"

Have can we make the plc to read the TAG "ReadTimer" (MotorM1.AlarmTmr.Pre)= ( 5000mS) and move the value to the TAG "TimerValue" (DINT). ???????
Can I use a messages instruction, or a Structured Text to do this.

Next step is to write a new value to the timer.

NOTE.
We don`t like to have to motor in a array, because the motor name is unik, like Conveyor, screw , Fan and blower, so we don`t use the name MotorM1-MotorM99 !!
It just make it more simple

Regard
Arne VH







BobLfoot
QUOTE(AVH @ Jan 21 2008, 10:51 AM) [snapback]64066[/snapback]

Hi

We are using a controllogix5000 Ver.16, and have a lot of motor digital control.
So we are using one UDT ( User Defined Type) for every motor, in that
UDT ther is also a alarm timer.
So i the motor is not runnig after a time, there is a alarm on the motor.

MotorM1.AlarmTmr.Pre
MotorM2.AlarmTmr.Pre
MotorM3.AlarmTmr.Pre
.......
MotorM99.AlarmTmr.Pre

From the scada system we like to adjuste the time PRE value.
Instedof have 100 timer`s Tages in the scada, we like to use a index.
So we have a "MotorName" tag as a string, and in the plc we add another string ".AlarmTmr.Pre",
so the complet string "ReadTimer" has the tekst "MotorM1.AlarmTmr.Pre"

Have can we make the plc to read the TAG "ReadTimer" (MotorM1.AlarmTmr.Pre)= ( 5000mS) and move the value to the TAG "TimerValue" (DINT). ???????
Can I use a messages instruction, or a Structured Text to do this.

Next step is to write a new value to the timer.

NOTE.
We don`t like to have to motor in a array, because the motor name is unik, like Conveyor, screw , Fan and blower, so we don`t use the name MotorM1-MotorM99 !!
It just make it more simple

Regard
Arne VH

POINT OF CLARIFICATION - makes a difference

Do you need your PLC to query your Scada or does your Scada write the preset data to the PLC?
Kiwi Sparky
Why not have an array of motor tags e.g Motor[0]-Motor[19] and allias to them. e.g Conveyor01 is aliased to Motor[3] and Agitator07 is alliased to Motor[17] etc etc. You could then index through them as you wanted
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.