Micro830

I have a corporate computer and I don't know what all has been done as far as security etc.

Also, there is a question in my mind as to where files go when saved.
I look at stuff I think should be on the hard drive, and up in the URL window it appears to be on the network drive.

I never did understand why someone feels the need to make it look as if things that are on the hard drive are not on the hard drive. eg desktop, my documents

It kinda looks to me that on this computer someone felt the need to make it look like things are on the C: drive but it might be going to the network. It definately synchronizes one to the other.

There has to be a copy on the hard drive, because I can access stuff when I'm not connected to the network, but when CCW is installing or running, I don't know where it might be looking. Rockwell had me disconnect from network to install.

... BUT it seems to me that unless somehow CCW is not downloading what it should to the PLC ( and neither the soft or hardware notices ), Crawler's program proves the PLC doesn't work
 
I thought I would update this thread incase it would help someone else.

I spent a few hours on the phone with tech connect, several hours re installing software and even got a replacement controller.

Here's the deal : in the project organizer, your ladder logic MUST be in "programs"

I was following some tutorial and they put it in "user defined functions"

It will do about everything except work unless you put it in "programs" ....would have been good to know a few weeks ago. No one at rockwell seemed to know ... until today... first thing the guy asked me.

thanks to everyone who replied ... you're the best

Holy Frijole Batman
 
Last edited:
silly question but did you compile/build it first?
this has no comparison with any other AB product.
I will post a zipped basic program soon.
Why are you using a TonToff timer?
 
Were you able to see the IO status change on the ladder once the program was up and running. I'm a long time user of RSLogix 500 and 5k, but CCW is new to me, and I can't figure out this basic functionality. I am connected, but not able to monitor the statuses. Troubleshooting a machine someone else built for us. Micro830 built with version 6.
 
CevinMoses said:
...I am connected, but not able to monitor the statuses. Troubleshooting a machine someone else built for us. Micro830 built with version 6.

Are you in Debug Mode?

Is the controller in Run Mode or Remote Run Mode?

What status are you seeing for the rungs?...

Rung Red = Logic TRUE

Rung Blue = Logic FALSE

Rung Black = Offline

Regards,
George
 
realolman said:
...Here's the deal : in the project organizer, your ladder logic MUST be in "programs"

I was following some tutorial and they put it in "user defined functions"...

realolman,

I must have missed this one originally and I'm sure by now you're a dab hand in CCW, but in the interest of "being more informed" with regard to the above...

You weren't to know, and I'm sure you were quite Green back then, but it should have been more obvious to Support that your "logic" was not running, at all. It took a savvy Support Engineer to twig that a fundamental mistake had been made.

But did they explain the difference?...

Why were you able to create logic under the User-Defined Function Block (UDFB) section, but we're not able to "Run" it?

CCW is quite simple in its project structure. A Program, whether it's written in Ladder Diagram (LD), Function Block Diagram (FBD) or Structured Text (ST), must indeed be created under the "Programs" section. Programs will only be executed from this section of the project.

So what is the purpose of creating a User-Defined Function Block (UDFB)?

Let's first look at what a Function Block does?

In software languages, a Function Block may contain input variables, output variables, pass-through variables, internal variables, and an internal behavioral description of the Function Block. Function Blocks are used primarily to specify the properties of a User Function which will then be instantiated in the program. Many software languages are based on Function Blocks.

So User-Defined Function Blocks allow a user to create a pre-defined logical operation for instantiation in their Programs.

UDFBs in CCW are very similar to Add On Instructions (AOI) used in Logix 5000 controllers. You create your pre-defined logic and variables (tags) and then the UDFB is made globally available for use in your Programs or even in other Projects. Again, this is similar to an Add On Instruction. There can be several instances of the same UDFB used in several Programs. A UDFB can be created, similar to Programs, using either LD, FBD or ST programming.

So the UDFBs are only defined under the UDFB section, and each instance is only executed in the Programs section. If a UDFB is defined, but not used in any Program, then it's pre-defined logic is not being executed anywhere while the controller is in Run Mode.

realolman said:
...I can build it with no errors, download it, and turn the PLC from rem run, to program, to rem run again... the software says I am connected but when I try to debug it, the debug doesn't show anything happening.. elements are supposed to be blue and turn red when true... mine's always black...

When you view the globally defined logic for a UDFB in a running controller, you will notice that the background is a distinctive Tan colour and the rungs will be Black, similar to when you are viewing a Program Offline. This is a "View Only" status. That is why you could not see the rung status for this logic changing.

The tutorial that you were following was obviously a using a UDFB and threw you off somehow. Perhaps it only showed the creation of the UDFB, but not its implementation in a Program? This made you think the tutorial had just shown you how to create a "User Program" and the rest is history.

Either way, that is what was happening.

To instantiate a UDFB in your Program, insert a Block instruction on the intended rung and the Block Selector window will open. Find your UDFB in the list; it should be of Type: IFB / Category: (User defined), and apply it. You will now have your UDFB instantiated as a Block instruction.

If you want to monitor the logical operation of an instance of a UDFB, while connected to the controller, then double-click on the instance itself, in the Program, and not the globally defined UDFB. This way the controller knows which instance you want to monitor and can correctly display its running status. You can also hover over a UDFB Block instruction and it will display a callout of all of its defined variables.

Regards,
George

This is a sample UDFB called "Pump Alternator"...

Pump_Alternator_UDFB.png
 
Thanks for the update Geospark.

I am a first time user of CCW. The architecture is quite different from other software platforms. I did have an advantage as I am not familiar with any other AB software, so was not comparing it to that. Mostly Omron for me since the late 80,s starting with using C5 plc. Once you get your head around the architecture it is quite easy to use, my only gripe being the very slow build, download, stop plc command. On line editing would be nice, but this is similar to other free or low cost software such as unitronics for example. UDFB seems a good attribute to have on a low end plc.
 
Last edited:

Similar Topics

I am having issues getting a Red Lion HMI and Micro830 controller to communicate. I am using the cable here to connect the controller to the RS232...
Replies
0
Views
113
Trying to put these equations in structured text program in a Micro 830. when I run the verify I get this error. ;:expected before this new...
Replies
4
Views
432
Having to add some programming to a Micro830. I want to add a free running TON, reset with a done bit. in the drop downs or the instruction...
Replies
4
Views
280
Hello, We have a project on our shop floor that for some reason project management decided to not talk to controls about and pick some...
Replies
2
Views
1,311
I have an application using an A-B Micro830 controller. Does anyone have a PDF tutoring how to program one of these. Not very intuitive especially...
Replies
23
Views
6,540
Back
Top Bottom