Post by jeffersonhui on SysProcessExecuteCommand2 terminate
CODESYS Forge
talk
(Post)
Hi, I am using the SysProcessExecuteCommand2 function from the SysProcess library to run the candump command in the PLC's Linux environment. However, the candump command stays running indefinitely. If I was running the candump command from a terminal (via PuTTy, etc), that command usually requires Ctrl+C to terminate. Is there a way to terminate a command that is executed with SysProcessExecuteCommand2?
Last updated: 2024-06-24
How to stop execution when a table index goes outside the table size range.
CODESYS Forge
talk
(Thread)
How to stop execution when a table index goes outside the table size range.
Last updated: 2019-11-06
[ Windows ] How to Restart PLC in CMD line ? ( a Stop followed by a Start )
CODESYS Forge
talk
(Thread)
[ Windows ] How to Restart PLC in CMD line ? ( a Stop followed by a Start )
Last updated: 2020-03-27
CNC / G01 Speed is very slow (or go-stop motion) in Continuous short segment .
CODESYS Forge
talk
(Thread)
CNC / G01 Speed is very slow (or go-stop motion) in Continuous short segment .
Last updated: 2024-05-01
Which kinds of data is transferred with 'Scan for devices' command?
CODESYS Forge
talk
(Thread)
Which kinds of data is transferred with 'Scan for devices' command?
Last updated: 2020-12-14
[operating system] command to detect whether runtime is over LINUX or WIN ?
CODESYS Forge
talk
(Thread)
[operating system] command to detect whether runtime is over LINUX or WIN ?
Last updated: 2020-02-24
Login issue if I run a script via --runscript command line
CODESYS Forge
talk
(Thread)
Login issue if I run a script via --runscript command line
Last updated: 2014-12-08
Batch login to series of PLC's using cmdfile command line
CODESYS Forge
talk
(Thread)
Batch login to series of PLC's using cmdfile command line
Last updated: 2011-03-16
user current debian jessie - enable ssh to enable - update raspberry command
CODESYS Forge
talk
(Thread)
user current debian jessie - enable ssh to enable - update raspberry command
Last updated: 2016-12-16
CANopen slave crashes on "Start Remote Node" command from master, SYNC related
CODESYS Forge
talk
(Thread)
CANopen slave crashes on "Start Remote Node" command from master, SYNC related
Last updated: 2022-07-08
Python script runs fine from within project, but not from command line
CODESYS Forge
talk
(Thread)
Python script runs fine from within project, but not from command line
Last updated: 2021-06-07
Command "Create Boot Application" is missing a configuration file for AC_Persistence manager
CODESYS Forge
talk
(Thread)
Command "Create Boot Application" is missing a configuration file for AC_Persistence manager
Last updated: 2023-07-25
Start Codesys project and then execute python script from command line
CODESYS Forge
talk
(Thread)
Start Codesys project and then execute python script from command line
Last updated: 2024-09-30
Post by testlogic on Sending Sequential Modbus TCP Packets
CODESYS Forge
talk
(Post)
I have a Modbus TCP slave device where I need to do sequential writes to the same register. The register I'm writing to is kind of like a command line, each packet is a command word encoded in Hexadecimal. I am having difficulty implementing this system in CoDeSys 3.5 SP19. I feel like the structure of the program should be something along the lines of (Pseudocode): ModbusTCPSend(Command Register, Command1) ModbusTCPSend(Command Register, Command2) ModbusTCPSend(Command Register, Command3) I have tried to implement this with a rising edge trigger wMot1OPCode := 16#E1; //Stop Motor & Kill Program xMot1SendOP := TRUE; //Send OP on rising edge xMot1SendOP := FALSE; //Reset wMot1OPCode := 16#9E; //Disable Motor xMot1SendOP :=TRUE; //Send OP on rising edge xMot1SendOP := FALSE; //Reset Where "wMot1OPCode" is the IO map for writing to the command register, and "xMot1SendOP" is the rising edge trigger for that modbus channel. However, this doesn't work. The device never responds to the modbus commands. It seems like the trigger variable is switched too quickly for modbus to send the packet. I know the modbus register is working, because I can set the channel to cyclic and the device will respond. However, I can't use this reliably because I need each command to be sent once, in order. Cyclic keeps re-sending the commands and seems like it could miss a command as well if one was sent in-between cycle time. I have also trying using the Application trigger as described by https://faq.codesys.com/pages/viewpage.action?pageId=24510480, but this is also not working for me. See attached picture for my FBD code. This seems like a simple function, I can't tell what I'm doing wrong here. Thanks for the help.
Last updated: 2024-03-06
Post by eschwellinger on onewire bus master stop working after 4.8.0.0 upgrade
CODESYS Forge
talk
(Post)
hm.. wie wΓ€re es mit 4.9.0.0 Runtime?
Last updated: 2023-09-21
Post by eschwellinger on Stop Programm geladen Ausnahmefehler
CODESYS Forge
talk
(Post)
immer ins Sps log schauen das sollte weiterhelfen.
Last updated: 2024-01-15
Post by josephbourgeois on Tracking out product
CODESYS Forge
talk
(Post)
Hi everyone! I synchronize the operation of the tripod and the conveyor. I have a problem with the product tracking algorithm on the conveyor (PCS_1). Sometimes I need to stop tracking a product on command without completing the operation. I do this using MC_GroupStop. But when I need to start moving in WCS again (using fb movelinearabsolute), I get a tripod kinematics error - SMC_CP_INVALID_ORIENTATION (Invalid orientation (non-orthonormal matrix or non-unit quaternion, internal error)). MC_ResetGroup does not help. What could be the problem? Has anyone encountered this?
Last updated: 2024-02-05
Post by josephbourgeois on tracking out product
CODESYS Forge
talk
(Post)
Hi everyone! I synchronize the operation of the tripod and the conveyor. I have a problem with the product tracking algorithm on the conveyor (PCS_1). Sometimes I need to stop tracking a product on command without completing the operation. I do this using MC_GroupStop. But when I need to start moving in WCS again (using fb movelinearabsolute), I get a tripod kinematics error - SMC_CP_INVALID_ORIENTATION (Invalid orientation (non-orthonormal matrix or non-unit quaternion, internal error)). MC_ResetGroup does not help. What could be the problem? Has anyone encountered this?
Last updated: 2024-02-05
Post by fabian on Sys Process Execute Command
CODESYS Forge
talk
(Post)
Hello, I have a question: Once the command is being executed, is there a way to kill it again? As the called application is running in the background, the user can't close it but it shall be closed/terminated, commanded by codesys. I have tried with "SysProcessTerminate" but I guess this is not correct as the RTE crashes when this function is called. Starting the application: IF GVL.xStrtQR THEN GVL.xStrtQR := FALSE; SysProcess.SysProcessExecuteCommand2(pszCommand:=sCmd, pszStdOut:=stdout, udiStdOutLen:= SIZEOF(stdout),pResult := ADR(GVL.pResQRTsk)); END_IF Trying to stop it again: IF GVL.xTrmQR THEN GVL.xTrmQR := FALSE; pResTerm := SysProcess.SysProcessTerminate(hProcess:=SysProcess.SysProcessGetCurrentHandle(pResult:=ADR(GVL.pResQRTsk))); END_IF Codesyscontrol Win x64, 3.5.19.10. Many thanks for any advice pointing to the correct direction.. :-) Regards, Fabian
Last updated: 2023-11-17
Post by open on How to create a stopwatch?
CODESYS Forge
talk
(Post)
Hi, how to create a stopwatch when start is pressed, timer will start counting and stop is pressed, timer will stop counting in structured text?
Last updated: 2023-12-07
Post by soped on How to generate EtherCat xml from command line
CODESYS Forge
talk
(Post)
Hi Under tools->customize I have added the command "Generate ethercat xml" to my project so that I can export the configuration as an xml file. I can't find a way how to run that command from CLI, is that even possible and if a script is needed I would appreciate an example ?
Last updated: 2024-06-27
Post by soped on How to generate EtherCat xml from command line
CODESYS Forge
talk
(Post)
Hi I'm using codesys 3.5 SP4 Under tools->customize I have added the command "Generate ethercat xml" to my project so that I can export the configuration as an xml file. I can't find a way how to run that command from CLI, is that even possible and if a script is needed I would appreciate an example ?
Last updated: 2024-06-27
Post by snhatton on CANopen Example:
CODESYS Forge
talk
(Post)
Can you try the command "Download Missing Libraries"?
Last updated: 2023-09-21
Post by eschwellinger on install codesys runtime on linux
CODESYS Forge
talk
(Post)
could you try to add the command in Tools-customize
Last updated: 2023-11-04
Post by simotion on Property
CODESYS Forge
talk
(Post)
Why can't a property be of type REFERENCE TO? Plc goes to stop if I try that.
Last updated: 2023-12-14
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.