CCW FDB's - How to set a variable to a constant

RMore

Member
Join Date
Dec 2011
Location
Kenmore, NY
Posts
64
I am new to using Functional Block Diagram (FDB) language programming in CCW.

I want to set a variable to a constant if a contact is closed. How do I do this?

Also, where can I find a comprehensive tutorial on using FBD in CCW?
 
The Rube-Goldbergs/Heath-Robinsons below work, but there has to be a better way. We should be able to enable the EN/ENO input/output of an instruction block, but in my version of CCW that option only shows up in ladder.

Untitled1.png

Untitled.png
 
I think this would work for you, adapt as needed for other data types. Make a new user defined function block. I called this SelectReals and wrote the block in ST. Here's the code:

IF Select THEN Output := SelectOn;
ELSE Output := Select Off;
END_IF;

Local varaiables for that are:
Select, BOOL, VarInput
SelectOff, Real, VarInput
SelectOn, Real, VarInput
Output, Real, VarOutput

That function will appear in the select list for an instruction block.
 

Similar Topics

Hey out there, I am trying to build an alarm que in CCW. I have got the FFL and FFU working, however the string that goes with the alarm can't be...
Replies
2
Views
20
Hello. Has anyone ran into an issue with HSC on 2080-LC20. It run a cut off press and every so often after resetting to 0 it does not count...
Replies
0
Views
67
I am running CCW 13 trying to upload to a micro 820 vers.12 I get an output message OPC server is unable to load project controller. Please help!
Replies
5
Views
247
How to retain Values in CCW software? I am using CCW software and I can not find the Retain function in this software. Not even local or global...
Replies
2
Views
173
Back
Top Bottom