wiki Discussion
tochgreenlab
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-12-10
blog Discussion
tochgreenlab
blog
(Discussion)
Forum for blog comments
Last updated: 2023-12-10
(no subject)
tochgreenlab
wiki
(Thread)
Last updated: 2023-12-10
Post by open on How to create a stopwatch?
CODESYS Forge
talk
(Post)
Hi @ph0010421 and @Ton, Is it possible to program a stopwatch to measure a system running time when it is turn on, and pause when the system is turn off. I tried your examples when stopped, the elapsed time will then be calculated, but i need the time to be continuously counting. Warmest regards,
Last updated: 2023-12-11
Home (version 1) discussion
otb
wiki
(Thread)
Home (version 1) discussion
Last updated: 2023-12-10
blog Discussion
juanceramics
blog
(Discussion)
Forum for blog comments
Last updated: 2023-12-11
Home
tochgreenlab
wiki
(WikiPage)
Project Members: tochgreenlab (admin)
Last updated: 2023-12-10
Post by kevinl on RevPi Connect RS485
CODESYS Forge
talk
(Post)
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 uses ttyRS485 as Serial port so you must remove the last number from the name and set the com port to this number +1 i hope this is understandable ;-)
Last updated: 2023-12-11
RevPi Connect RS485
CODESYS Forge
talk
(Thread)
RevPi Connect RS485
Last updated: 2023-12-11
wiki Discussion
juanceramics
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-12-11
Home
juanceramics
wiki
(WikiPage)
Project Members: juanceramics (admin)
Last updated: 2023-12-11
(no subject)
juanceramics
wiki
(Thread)
Last updated: 2023-12-11
Post by meldawltly on Excel to Codesys 3.5
CODESYS Forge
talk
(Post)
Hello everyone, I have an excel file that i want to import into codesys3.5. Any idea how and what libraries can i use? To more clarify i have a table in codesys and i want to import my excel file into this table/ Thank you
Last updated: 2023-12-11
Post by alexmserra on Profibus Master using Softing ProfiUSBpro
CODESYS Forge
talk
(Post)
Where can I get the driver to install on the Raspberry Pi?
Last updated: 2023-12-11
wiki Discussion
meldawltly
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-12-11
blog Discussion
meldawltly
blog
(Discussion)
Forum for blog comments
Last updated: 2023-12-11
(no subject)
meldawltly
wiki
(Thread)
Last updated: 2023-12-11
Home
meldawltly
wiki
(WikiPage)
Project Members: meldawltly (admin)
Last updated: 2023-12-11
wiki Discussion
ragarcia
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-12-11
blog Discussion
ragarcia
blog
(Discussion)
Forum for blog comments
Last updated: 2023-12-11
(no subject)
ragarcia
wiki
(Thread)
Last updated: 2023-12-11
Post by meldawltly on Excel to Codesys 3.5
CODESYS Forge
talk
(Post)
Hello everyone, I have an excel file that i want to import into codesys3.5. Any idea how and what libraries can i use? To more clarify i have a table in codesys and i want to import my excel file into this table/ Thank you
Last updated: 2023-12-11
Excel to Codesys 3.5
CODESYS Forge
talk
(Thread)
Excel to Codesys 3.5
Last updated: 2023-12-11
Post by ragarcia on Error while using UpdateConfiguredIPSettings to change IP address
CODESYS Forge
talk
(Post)
Hello everyone, I am trying to change dynamically by code the IP address of a Weidmuller controller. So I am basically using IoDrvEthernet library to use UpdateConfiguredIPSettings function but I am getting constantly the 'INVALID_STATE' error. Even though I am following a procedure it should work: * First I added on the config file of codesys the following: [SysSocket] Adapter.0.Name="eth0" Adapter.0.EnableSetIpAndMask=1 Adapter.1.Name="eth1" Adapter.1.EnableSetIpAndMask=1 * Secondly I am first disabling the ethernet interface by using Ethernet_0.Enable = FALSE and then executing DED.Reconfigure. After that, I run the Ethernet_1.updateConfiguredIPSettings Code: Ethernet_1.Enable:= EnableDisable; Reconfigure(xExecute:= TRUE, itfNode:= Ethernet_1, xError=> ErrorReconfigure, eError=> ErrorCodeReconfigure); IF Reconfigure.xDone THEN ErrorCodeIP:= Ethernet_1.UpdateConfiguredIPSettings(IPAddress:= newIP, SubnetMask:= newMask, Gateway:= newGW); END_IF IF Reconfigure.xDone OR Reconfigure.xError THEN Reconfigure(xExecute:= FALSE); END_IF Ethernet_1.Enable:= TRUE; Reconfigure(xExecute:= TRUE, itfNode:= Ethernet_1); IF Reconfigure.xDone OR Reconfigure.xError THEN Reconfigure(xExecute:= FALSE); END_IF Can someone help me? Thank you. All I am trying is to find a way to change dynamically with code, the IP addresses of my controller (2 ethernet ports).
Last updated: 2023-12-11
Profibus Master using Softing ProfiUSBpro
CODESYS Forge
talk
(Thread)
Profibus Master using Softing ProfiUSBpro
Last updated: 2023-12-11