ohnedich6
Member
Hello All,
Figured I would join the forum after looking for some information on the web and under the search function of this site. I figured i would join to try and get the communities thoughts/opinions/knowledge with what I'm trying to determine is an acceptable way to program:
I have created a UDT in ControlLogix 5000 Rev. 20 that i have named Pump.
Pump contains the following pieces of data:
Auto -> BOOL
Man -> BOOL
Fault -> BOOL
Ready -> BOOL
Running -> BOOL
Speed -> REAL
I have created a tag (Controller or Program, atm i'm just testing things out) called PMP_1 which is a data type Pump. The BOOL data types in the UDT of Pump are actual hardwired inputs to a DI card (1734-IB8 for this program) that i will need to reference, and the REAL is an AI card (1734-IE8C).
What i'm trying to figure out is if it is a good practice to "alias" the parameters of PMP_1 using structured test in the following way:
PMP_1.Auto := AENTR:1:I.0;
PMP_1.Man := AENTR:1:I.1;
ETC...
Or should i just created program tags and alias them the normal way?
PMP_1_Auto alias to AENTR:1:I.0
PMP_1_Man alias to AENTR:1:I.1
ETC...
If this has been discussed i apologizes and could someone point me in the right direction. Thank you for your help.
Regards,
Nathan
Figured I would join the forum after looking for some information on the web and under the search function of this site. I figured i would join to try and get the communities thoughts/opinions/knowledge with what I'm trying to determine is an acceptable way to program:
I have created a UDT in ControlLogix 5000 Rev. 20 that i have named Pump.
Pump contains the following pieces of data:
Auto -> BOOL
Man -> BOOL
Fault -> BOOL
Ready -> BOOL
Running -> BOOL
Speed -> REAL
I have created a tag (Controller or Program, atm i'm just testing things out) called PMP_1 which is a data type Pump. The BOOL data types in the UDT of Pump are actual hardwired inputs to a DI card (1734-IB8 for this program) that i will need to reference, and the REAL is an AI card (1734-IE8C).
What i'm trying to figure out is if it is a good practice to "alias" the parameters of PMP_1 using structured test in the following way:
PMP_1.Auto := AENTR:1:I.0;
PMP_1.Man := AENTR:1:I.1;
ETC...
Or should i just created program tags and alias them the normal way?
PMP_1_Auto alias to AENTR:1:I.0
PMP_1_Man alias to AENTR:1:I.1
ETC...
If this has been discussed i apologizes and could someone point me in the right direction. Thank you for your help.
Regards,
Nathan