CODESYS: Declaring Array type variables

  Рет қаралды 28,861

Tohid Alizadeh

Tohid Alizadeh

Күн бұрын

Пікірлер: 21
@justinwoodrum1260
@justinwoodrum1260 2 жыл бұрын
Your videos always help very much. Thank you my friend.
@TohidAlizadeh
@TohidAlizadeh 2 жыл бұрын
Thank you for your nice comment 🙏
@endprg6477
@endprg6477 3 жыл бұрын
can you show possible examples of processing arrays? thank you in advance
@anonimo-bj3qx
@anonimo-bj3qx 8 жыл бұрын
Hi Tohid, How can you reference specific bit of an array using a variable. Let say I have an array of 16 bits and I want to use bit 8 of that array. Later on I want to use bit 4 of that array instead of bit 8. How do I add a variable to change what bit I want to use, so that I do not have to change my program rung by rung? Thank You
@TohidAlizadeh
@TohidAlizadeh 8 жыл бұрын
Hi Ano, One way to do it is to use a function from the ACC library, which is called MEM.UnpackArrayOfByte(). Using this function, you can unpack the data inside an array of bytes in to an array of bits, and then access any bit that you need to use. I may make a short video tutorial on this soon. Hope this would help you. Best regards.
@anonimo-bj3qx
@anonimo-bj3qx 8 жыл бұрын
Thank You
@waranmahes3844
@waranmahes3844 3 жыл бұрын
sir thanks for these type of support .can you refer me how to use recipe in codesys
@marvinschonamsgruber5490
@marvinschonamsgruber5490 7 жыл бұрын
Hey Tohid, nice Videos! How can I declare an Array Of String which can be used in a "Array Combobox" in the webvisu. I am programming a a Little machine which produces 5 different parts. I want to choose the right part via webvisu, so the different part numbers should be added to the Combobox, which allows me to choose one later. the article numbers look like "C_123456_R" thank you Marvin
@TohidAlizadeh
@TohidAlizadeh 7 жыл бұрын
Hi Marvin, I will prepare a short video tutorial explaining this in the coming days. Stay tuned!
@TohidAlizadeh
@TohidAlizadeh 7 жыл бұрын
Here is what I promised: kzbin.info/www/bejne/maXLnohser-Coas Please let me know if it is what you needed!
@Victor_Sj
@Victor_Sj 8 жыл бұрын
Hi, is it possible to use auto declare to asign data types to a variable, and then initialize their values?
@TohidAlizadeh
@TohidAlizadeh 8 жыл бұрын
+Victor Sj Hi, it is possible. You can declare any variable with the auto declare, initialize the variable right away or do it later in the variable declaration area.
@geronimobee4349
@geronimobee4349 8 жыл бұрын
Hi Tohid, Any way of doing Reject Station example using arrays and bit shift instruction? They are few videos on youtube already, but I would really like to see your approach. Thank You
@TohidAlizadeh
@TohidAlizadeh 8 жыл бұрын
Hi Geronimo, Please provide me more details about the process. Then I will try to do it. Regards, Tohid
@geronimobee4349
@geronimobee4349 8 жыл бұрын
First thank you for prompt response. I would like to see basic reject station that has trigger photoeye ( product detection), low/high label photoeye ( detects if label is too short (no label) or too long - if either condition is true than reject product) and solenoid reject that will kick off product from conveyor if no label or label too high. So I was thinking that there should be two shift registers. One from trigger pe to low/high label pe and one from low/high label pe to reject solenoid. www.fillers.com/quality-control-inspection-system/#lightbox[8496]/0/ this link is only for reference. First picture on the top has three sensors so lets say one all the way on the left is trigger sensor and other two are high/low label sensors, and there is reject solenoid further down conveyor. I hope I explained it well. Regards, Geronimo
@TohidAlizadeh
@TohidAlizadeh 8 жыл бұрын
Ok, give me few days. I will do it in my earliest convenience.
@geronimobee4349
@geronimobee4349 8 жыл бұрын
Thank you sir.
@geronimobee4349
@geronimobee4349 8 жыл бұрын
Hi Tohid, Any hope of seeing this example any time soon? Thank You
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 102 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 21 МЛН
Интересно, какой он был в молодости
01:00
БЕЗУМНЫЙ СПОРТ
Рет қаралды 3,8 МЛН
Codesys #19: Enumeration
16:09
Industrial Automation
Рет қаралды 3,6 М.
Codesys #17: Arrays
12:13
Industrial Automation
Рет қаралды 4,8 М.
17.TwinCAT3: ARRAYS
14:21
Ninja Monkeys Tutorials
Рет қаралды 1,3 М.
How to use CODESYS TON Timers!
9:35
Scantime Automation & Training
Рет қаралды 10 М.
Arrays, Structures and User Defined Types! How and Why?
13:13
CoDeSys Tutorial : Multiple ways of IO mapping  in CoDeSys
23:52
JugaadTech
Рет қаралды 3,4 М.
PLC Basics: Structured Text
33:31
This is Automation
Рет қаралды 119 М.
Codesys #16: Timers & Counters with Structured Text
11:38
Industrial Automation
Рет қаралды 5 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 102 МЛН