Hello, I'm using MODBUS over RS232. Currently (for testing purpose)I have only one channel for writing. The channel is defined as "Write Single register(Function code 6)" with cyclic trigger 200 msec as well. The cycle time of the application is 200 msec. According to the codesys help, the cyclic interval should be the same as or a multiple of the cycle time of the application. I need to write a value each application cycle. So, I increased the value by 1 and I expect to get the value in the table...
Thanks for your response. Regarding "Increasing scanned code may lead to a watchdog trigger" , it is relevant only if watchdog is enabled. Am I correct? What happens if some scans take more time than Interval time?
Hello, 1.What are the advantages and disadvantages of using freewheeling task? 2.What are the advantages and disadvantages of using cyclic task? 3.How to determine what task type(freewheeling or cyclic) to use? Thanks in advance.
Hello, 1.What are the advantages and disadvantages of using freewheeling task? 2.What are the advantages and disadvantages of using cyclic task? 3.How to determine what task type(freewheeling or cyclic) to use? Thanks in advance.
Thanks. I'll try it.
Hi, I have two real numbers that represent timestamp - see the attached screenshot. Is there codesys function or structure that converts 2 real numbers into appropriate timestamp in a resolution of mSec. If codesys has no build-in support for this, what is the better way to perform it in ST? Thanks
Hello, We have a system with PLCs with different byte order conventions - little endian/big endian. I'm looking for Codesys routines for converting data between a host's internal representation and Network Byte Order(like htons() and ntohs()). Thanks in advance
Hello, I'm trying to convert length of a string from int to word - INT_TO_WORD(Len(str)).It doesn't work -see the attached file. Any help you can provide would be greatly appreciated. Thanks
Hello, For our project we need a retentive timer functionality. We've created a function block that implements this functionality. I created my own library with this function block and added this library to a project. I get a lot of errors when I build the project - it doesn't recognize any type from the Standard library. Any help you can provide would be greatly appreciated. Thanks
Thanks for the link. We are going to use the timer in several projects. Is there any way to create a library or something like that in order to not include the retentive timer code in all our projects? Thanks in advance
We are converting our Ladder application to Codesys LD. Our Ladder supports a retentive timer. Its behaviour as follows: 1. As long as the input is TRUE, the timer counts down from its preset time. 2. When the input ceases to be true, the time left is "frozen", i.e., the timer stops counting but remains at the point in the countdown that it reached while the input was true. 3. When the input again becomes true, the timer resumes its countdown from the "frozen" point. Is there such a timer in Codesys...
I see. Thanks
Hi, I've encountered a weird issue when building my LD application. I get a different number of error messages in the message view - see the attached file. Thanks
Thank you very much for your response. It seems that Box object does match our needs. Some additional questions: 1.What is the pros of using a Method for defining an additional "process" over a POU ? 2.Can I use an empty Box instead of Box with EN/ENO? Thank you, again.
Hello, I am new to Codesys Ladder programming. We are converting our Ladder application to Codesys LD. Our application has several processes. Each process handles different subjects. Each process is activated by a Jump To Subprocess element - see the attached file I'm looking for a way to implement the same thing (jump from a process to a different process ) with Codesys LD. Thanks
Hello, I am new to Codesys Ladder programming. We are converting our Ladder application to Codesys LD. Our application has several processes. Each process handles different subjects. Each process is activated by a Jump To Subprocess element - see the attached file I'm looking for a way to implement the same thing (jump from a process to a different process ) with Codesys LD. Thanks
Jump to a process
Jump to a process