Hello, Is there a function block that gives a bool if it gets 2 rising edge one after the other and resets every 3 seconds? I want to press a button two times before it gives a bool. And resets every 3 seconds. Thank you in advance, Edwin
for a grayhill joystick I mean
Hello Kevin, thankyou for the word document. I will try it out. I have a 2 eds file with K in the file is for Keypad (wat you need) file With J in the file is for joystick
Hello edepalos, I didn't forget you, but I am very busy at the moment. When I will have more time I will share is with you.
Jes thanks for asking, do want the code?
Jes thanks for asking, do want the code?
Hello Mawaloc, Will a function block that shove 8 bits in a byte help? See my photo Then you need to download the Util libary and add this library to your libaries in your library. Than you have this funtion block. Just add a block and name it PACK. I have add the util lib in the attachments. Hope this helps Regards
Goodday, First some information: I use codesys 2.3 PLC is HY-TTC94 and IFM PLC Keypad: Grayhill 3K208-2RN3AG I use CAN open We have already a good working can line between IFM PLC and Grayhill keypad. But is it possible to have another ECU (HY-TTC94) connected to this can line? We need to know the signals of the keypad. So if a key is pressed or not. I have a EDS file of the keypad. and installed in my program under the canopen master I have no experience with that. So could somebody help me ple...
Is there a block that can observe major differences in values? So if a value drops 100 or 200 lower in a short amount of time (10 ms) I get a bool. Datatype WORD would be nice as input. This (see picture) function block is almost what I want but it gives bool when value is changing. Received via this platform. Also very handy. Thank you very much in advance! Edwin
I have simplified the code. I made from button 3 a bool. And when true stand_links and when false stand_rechts. But got the same problem.
I have simplified the code. I made from button 3 a bool. And when high stand_links and when low stand_rechts. But got the same problem.
I have simplified the code. I made from button 3 a bool. And when high stand_links and when low stand_rechts.
Goodday, I have three buttons. Lets call the first one button 1 this is a bool by one press it's true by another press it's false. I have button 2 this is also a bool by one press it's true by another press it's false. I have also button 3 this one is different it's only true if the button is pressed. And as you could read in the title, 2 outputs these are also bools. I want that if I press button 3 that output 1 goes/is on and output 2 goes/is off. If I press another time button 3 I want that output...
Goodday, I have three buttons. Lets call the first one button 1 this is a bool by one press it's true by another press it's false. I have button 2 this is also a bool by one press it's true by another press it's false. I have also button 3 this one is different it's only true if the button is pressed. And as you could read in the title, 2 outputs these are also bools. I want that if I press button 3 that output 1 goes/is on and output 2 goes/is off. If I press another time button 3 I want that output...
Goodday, I have three buttons. Lets call the first one button 1 this is a bool by one press it's true by another press it's false. I have button 2 this is also a bool by one press it's true by another press it's false. I have also button 3 this one is different it's only true if the button is pressed. And as you could read in the title, 2 outputs these are also bools. I want that if I press button 3 that output 1 goes/is on and output 2 goes/is off. If I press another time button 3 I want that output...
I didn't work unfortunatelly. I tried also some different things but it didn't work. So I am gonna make a state machine programm. Hopefully then it will work. Thanks for the suggestion. Edwin
Goodmorging or goedemorgen H-Hermsen, Thanks for your answer. I have used RS box before but got the same problem that when I set the outputs off on the dispay and press the button(Knop_1_)then stand_left and stand_right is on. And I will try this morning to latch the outputs maybe it will work. Good suggestion. I will let you know if it works. Edwin
Good afternoon, I have codesys 2.3 and HY-TTC94 PLC. I have a hard time with this problem. I have tried so much things but it didn't work. I hope I can explain it well. I want that if I push a button some outputs go on(stand left) and if I push another button (stand right) some outputs go off and some outputs go on and If i push another time at the button it goes back to the first stand and every output of stand right is off. but here is the thing: I have also a display where you can control outputs...
forgot to add image
forgot to add image
forgot to add image
Good afternoon, I am working on a HY-eVsion 10.4 (a plc and display in one) and using codesys 3.5 SP9. And my question is: Is there a kind of stopwatch in codesys3.5? That would be ideal. I actually need a hour counter. And every time I close off the HY_eVision 10.4 and restart it, It need to memorize the time he stood and go on. I can probably do that in the persistence variable. But I am looking for a kind of stopwatch. Thankyou in advance! Edwin
Goodmorning Hermsen, Thankyou so much it worked!!!! And I got another signal out of the joystick to say if it rotates clockwise or counterclockwise so I could use that. And have add a TOF timer to make the signal more stable. But was not possible without your help so thankyou! Kind regards, Edwin
Hello, Is there a R Trigger for UINT? I have an joystick, when I rotate clockwise the range is 0 to 65535. The standard R Trigger is 0 to 1 cause BOOL. I want when the joystick rotates clockwise (value goes up) a BOOL. And when I don't rotate the bool is false. This also counterclockwise. So a R-trigger for UINT. Or does someone know a other solution? Thankyou
I have solved the problem. If you you a plc HY-TTC94 like me. You are standard using internal RAM. This is faster but smal. The error above tells me the RAM is to small so I have to switch to the external RAM. Slower but big. Go to target settings and change the values like the picture and than you are using the external RAM. So the problem is solved. Also a option if you have a plc HY-TTC90.
The error itself
Hello, My program has error 3803: Canopen implicit Variable(18): Out of global data memory. variable 'pCanOpenPDO_Tx'. I got that error right after codesys forced my to implement some libaries by rebuild. And that happened after deleting the last canopen master. And add CAN3 by Can-interfaces How can I solve this? Thankyou in advance Edwin
I forgot the error notification
Hello, Ik want to make a function block that converts 16 inputs bool into one bytes number I have already a pack box for 8 inputs image 'knipsel'. Got that Pack box from a library. But now I want a pack box for 16 inputs. I already made a seperate function block program. and copy it in the program where I wanna use it. But I get a error called 'Call recursion' how can I fix that? And I am very new in codesys so made I maybe some more mistakes? Thanks in advance, Edwin PS: I have use fake inputs by...