I figured this out on my own with this logic: usually the Serial port on a Raspberry pi is on /dev/ttyUSB0 then you need to set linux.DeviceFile=/dev/ttyUSB in codesys you then must set com port to 1 so i assumed codesys subtracts 1 from the number and adds this to the filename... (in code it would look like this: var comPort : byte := '1'; linuxDevice : string := '/dev/ttyUSB'; filename : string; end_var filename := concat(linuxDevice, (to_string(comPort-1)); filaname then is /dev/ttyUSB0 RevPi...
I figured this out on my own with this logic: usually the Serial port on a Raspberry pi is on /dev/ttyUSB0 then you need to set linux.DeviceFile=/dev/ttyUSB in codesys you then must set com port to 1 so i assumed codesys subtracts 1 from the number and adds this to the filename... (in code it would look like this: var comPort : byte := '1'; linuxDevice : string := '/dev/ttyUSB'; filename : string; end_var filename := concat(linuxDevice, (to_string(comPort-1)); filaname then is /dev/ttyUSB0 RevPi...
not yet, i am working on a update with much better performance and also less data usage wich i will propably release in summer... also i am currently pretty busy, let me know how important the buttons are for you and i'll consider adding it soon in a update. if you like to add the buttons yourself, please make sure to post your code here. i can also move the project to github if there is demand for helping in development. kind regards
Hallo, ich habe gerade auch ein Projekt bei dem ich den Fram einsetzen möchte, schaue mir das ganze mal an, bist du da noch weitergekommen? Grüsse
great, glad it works
hi albertocamina funny that it is not working with $N, this may be a bug of my library i should check... anyway, i recently did a bot with german umlaute (ÄÖÜ) and used unicode characters. that works like this: Ü = Unicode C3BC = %C3%BC, the % sign in a ASCII is $25 so Ü is $25C3$25BC now the answer to your question, you can use unicode newline (000A) that wil look like this: $2500$250A so the string 'albertocamina$2500$250Aprefers messages on 2 lines' btw you can also go with emojis, for example...
hi albertocamina funny that it is not working with $N, this may be a bug of my library i should check... anyway, i recently did a bot with german umlaute (ÄÖÜ) and used unicode characters. that works like this: Ü = Unicode C3BC = %C3%BC, the % sign in a string is $25 so Ü is $25C3$25BC now the answer to your question, you can use unicode newline (000A) that wil look like this: $2500$250A so the string 'albertocamina$2500$250Aprefers messages on 2 lines' btw you can also go with emojis, for example...
hi albertocamina funny that it is not working with $N, this may be a bug of my library i should check... anyway, i recently did a bot with german umlaute (ÄÖÜ) and used unicode characters. that works like this: Ü = Unicode C3BC = %C3%BC, the % sign in a string is $25 so Ü is $25C3$25BC now the answer to your question, you can use unicode newline (000A) that wil look like this: $2500$250A so the string 'albertocamina$2500$250Aprefers messages on 2 lines' will look like this: btw you can also go with...