pk07
Is this the only program/function block you have created in this project or are there more Programms maybe in ST language? Also PV of CTU_DINT0 should be of data type DINT and not bool
Reply 0 0
spjosef
Hi @eadsmanapsal,

try klicking on the red dots, sometimes by doing this, the view jumps to the error and marks it.
The first error-message is definitely, that you used a Bool instead of a DINT for PV (This is the Preset Value, a bool makes no sense).
I am not sure about the second one, try clicking on it.
The third error-message has also something to do with the input-variables of your counter. I think it could be the variable of the reset-input, as it seems to be a number, instead of a bool-variable, but it is to small to read it.

@pk07: The openplc-editor always tells you, that there is something wrong with an "ST-expression", even if it is written in LAD or FBD. This is a bit misleading, but i guess that in some step of the compiling-process those graphical programming-languages, are converted to ST. 
Reply 0 0
eadsmanapsal
@spjosef I tried clicking the red dots and nothing happens. I also change the CTU_DINT for a standard CTU but still, it has the same errors.
Reply 0 0
spjosef

@spjosef I tried clicking the red dots and nothing happens. I also change the CTU_DINT for a standard CTU but still, it has the same errors.
 

Hmm, unfortunately clicking on the dots does not work every time or for every kind of error (I am not sure what the conditions are).

What are you trying to accomplish?

Maybe this helps:
Unbenannt.png 
Every time OUT1 is set to HIGH, the counter adds one up. If the count is at five, the Q-Output of the block is set, which sets OUT2. By setting Reset to HIGH, the count is reset to  zero.

Reply 0 0
Reply