How can I clear a RS5000 UDT in Stuctured Text?

PLC_Shaggy

Member
Join Date
Aug 2010
Location
Indiana
Posts
12
I'm using RSLogix 5000 v20. I have created a User Defined Type that I would like to zero out in Structured Text.

In Ladder I can use the FLL command

FLL(0,myUDT,1)​

This works great. But the FLL command is not available in ST. So at the moment I am setting each item individually.
 
Well depending on what your udt is can't you just initialize the udt by using the assignment operator Ex. UDT tag := 0? Or I remember in ladder for logix 5000 their is a CLR instruction which I think clears the bits which also gives you a value of 0 not sure if that is available in ST but you can check.
 
Thanks Bernie the COP command did work.
COP(nullUDT,myUDT,1);​


I also tried these two methods, but neither worked:

  • myUDT:=nullUDT;
  • myUDT:=0;

CLR is not available in ST, but even in ladder it does not work with a UDT.
 

Similar Topics

Hi, Experts: We have 20 + years old GE PLC series 90-30 stop running (the run led not on and battery led not on) and HMI showing that "PLC has...
Replies
7
Views
198
Hi everyone, recently i worked with a cmore panel and have the question that how can clear alarm list whit remote form,right now only can with...
Replies
0
Views
111
Hi guys, I have a data table as REAL type VALUES_TABLE[32,100]. I want to clear this table. For that i created a REAL type CLEAR_DATA tag with...
Replies
8
Views
564
Hi, I have bought a used 1756-L73S and SP, it is running firmware 30.013 and safety locked, im running Logix Designer 30.01.00. The controller...
Replies
10
Views
1,669
First time using a panelview. I have all of my alarms mapped to bits of dints. How do I get the alarm panel to popup when an alarm happens...
Replies
6
Views
2,126
Back
Top Bottom