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