Hi Tohid, How do you assign variables to the pushbuttons? for lamps/spin control etc, 'variables' usually shows up in the property of the element but I don't see it for the pushbuttons
Hi, thanks for your comment. In the case of pushbuttons, you need to use the "InputConfiguration" Filed in the properties (the last filed), where you determine what happens if the button is pressed, or released, etc. I hope this helps.
If you're just using a Button, you can set a variable in Tap and it will cause the input to change state only when you click on the button. As soon as you release the button, the state changes back. This is good for momentary switches like a start button that has a seal-in contact. If you set the variable in Toggle, it will hold the same state after you release the button. For switches, they hold their value anyway, so if you set a variable, it will be toggled by the switch. I've just re-installed CodeSys and for some reason, the input configuration is different (or perhaps I just need some sleep). For some controls, I've been adding some structured text on the Mouse Down and Mouse Up events to set the inputs to True when clicking the button, then False when releasing the mouse button. I'm only just learning, so there are possibly lots, perhaps better, ways of doing things.
Thanks! I got one more question. How to make program with ST to combining order? For example... I need some order like this "1. S1 2. S2 3. not S1 4. not S2 " - and when it realize in that order, than counter up have activated... I tried do this with 5 steps with initializing step=:0 in the place for variables... :)
I think I did not get the point in your question. Could you please clarify more. Do you want to have all those being checked in series, and in the order mentioned? Then why do you have S1 and then not S1?
@@TohidAlizadeh Hi Tohid, really enjoy your videos thanks, need some help. Which way is Faster, CTUD(CU,PV) or IF iBOOL AND NOT interlookBOOL THEN, interlock:=TRUE; Chanel=chanel+1; end_if, IF NOT iBOOL AND interlock THEN, Interlock:=FALSE END_IF
+Andersbendorff I just wanted to keep the video short. The visualizations elements are explained in the other videos. Let me know which part of it seems difficult to you and I will recommend you some other videos accordingly.
Since you are new to CODESYS, I would recommend you to have a look at the webpage of my industrial automation course, where you can find the videos categorized properly: - Visualization videos: tohidalizadeh.weebly.com/codesys-visualization.html PLC programming videos: tohidalizadeh.weebly.com/codesys-plc-programming.html
Why does this guy have so little subscribers? His content is top quality! Learned a lot. Subbed.
Looks like I need some more support from my viewers/subscribers. This will encourage me to work more!
since he have always done everything !!!!!!!!
Hi Tohid, How do you assign variables to the pushbuttons? for lamps/spin control etc, 'variables' usually shows up in the property of the element but I don't see it for the pushbuttons
Hi, thanks for your comment. In the case of pushbuttons, you need to use the "InputConfiguration" Filed in the properties (the last filed), where you determine what happens if the button is pressed, or released, etc. I hope this helps.
If you're just using a Button, you can set a variable in Tap and it will cause the input to change state only when you click on the button. As soon as you release the button, the state changes back. This is good for momentary switches like a start button that has a seal-in contact. If you set the variable in Toggle, it will hold the same state after you release the button. For switches, they hold their value anyway, so if you set a variable, it will be toggled by the switch. I've just re-installed CodeSys and for some reason, the input configuration is different (or perhaps I just need some sleep). For some controls, I've been adding some structured text on the Mouse Down and Mouse Up events to set the inputs to True when clicking the button, then False when releasing the mouse button. I'm only just learning, so there are possibly lots, perhaps better, ways of doing things.
Thank you!
You are welcome!
Dear Sir,
Can please make a video of serial rs232 data transfer and receive ladder logic for Nexgen 2000 Plus (2211 CPU)
I do not have access to such a PLC, so I am afraid, I will not be able to make a video.
Is it possible to modify it from the browser or test penetration on it
Good Stuff
+vkznac tricna Thanks for the feedback.
Hello Tohid!
Is it posible to do this exactly same but with Structured text? I'm not good with ladder :)
Sure, it is possible. You may need something like this:
CTUD_0(CU:=CountUp, CD:=CountDown, RESET:=Reset, LOAD:=Load, PV:=PresetValue);
Thanks!
I got one more question.
How to make program with ST to combining order?
For example... I need some order like this
"1. S1
2. S2
3. not S1
4. not S2 " - and when it realize in that order, than counter up have activated... I tried do this with 5 steps with initializing step=:0 in the place for variables... :)
I think I did not get the point in your question. Could you please clarify more. Do you want to have all those being checked in series, and in the order mentioned? Then why do you have S1 and then not S1?
@@TohidAlizadeh Hi Tohid, really enjoy your videos thanks, need some help. Which way is Faster, CTUD(CU,PV) or IF iBOOL AND NOT interlookBOOL THEN, interlock:=TRUE; Chanel=chanel+1; end_if, IF NOT iBOOL AND interlock THEN, Interlock:=FALSE END_IF
wha about a time counter?
What do you mean by a time counter? To count the number of seconds?
You not showing how the end is made(visualization part) makes me sad. :(
+Andersbendorff I just wanted to keep the video short. The visualizations elements are explained in the other videos. Let me know which part of it seems difficult to you and I will recommend you some other videos accordingly.
Thanks for you reply, the Preset value. how do you define it. im quite new to codesys. + im using a older version then you are
+Andersbendorff I have used the SpincControl element to do so. You can check how to use it here: ua-cam.com/video/omcSLu1IXX8/v-deo.html
Since you are new to CODESYS, I would recommend you to have a look at the webpage of my industrial automation course, where you can find the videos categorized properly: - Visualization videos: tohidalizadeh.weebly.com/codesys-visualization.html
PLC programming videos: tohidalizadeh.weebly.com/codesys-plc-programming.html
Thanks, ive been watching some of you videos. but cant find much about Analog inputs. do you got something with LIN_TRAFO ?