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

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
63
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
235
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
169
I am new In a CCW and as a beginner I am trying to learn programming but i am noticing that my CCW software is taking around 1 minute to download...
Replies
2
Views
105
Back
Top Bottom