Post by kuegerls on SysProcessExecuteCommand2 and CANopen Device
CODESYS Forge
talk
(Post)
4.10.0.0
Last updated: 2024-06-24
Post by pazderai on CanOpen write issue
CODESYS Forge
talk
(Post)
Hi,is there any canopen library where is implemented sdo write with unspecified datalength (command byte 0x22)? I tried caa cia405 canopen library but it doesnt support this, but my slave device accept only 0x22. Thank you for any help.
Last updated: 2024-07-16
Post by pazderai on CanOpen write issue
CODESYS Forge
talk
(Post)
Hi,is there any canopen library where is implemented sdo write with unspecified datalength (command byte 0x22)? I tried caa cia405 canopen library but it doesnt support this, but my slave device accept only 0x22. Thank you for any help.
Last updated: 2024-07-16
Post by eschwellinger on OMAC PackML library 1.0.04
CODESYS Forge
talk
(Post)
see here this example: https://store.codesys.com/de/omac-packml-state-machine.html
Last updated: 2024-08-16
Post by masterofplc on Unrecoverable SoftMotion state after switch to PreOp
CODESYS Forge
talk
(Post)
Hi. i have the same problem. Thank you
Last updated: 19 hours ago
Post by sawicpx on CANbus Remapping PDOs During Runtime
CODESYS Forge
talk
(Post)
Hello, I am working on an application where I need to remap PDOs to a different CANopen object during runtime depending on what value is at a specific register. I have gotten to the point where I put the device into Preoperational State using the CIA405.NMT function. I then reconfigure the PDO 180x and 1a0x obejcts usings SDOs to point to a new canopen object on the device however when I go to restart the Device from PREOP to OP using the CIA405.NMT function the device is reset back to the original configuration as per the initial setup. I am wondering is there any way to change the PDOs at runtime is there some more functionaility I can access to do this. Any direction is appreciated!
Last updated: 2023-12-22
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 Softmotion axis to CANopen Maxon IDX drive
CODESYS Forge
talk
(Post)
can you add here the EDS file?
Last updated: 2024-01-07
Post by eschwellinger on SysProcessExecuteCommand2 and CANopen Device
CODESYS Forge
talk
(Post)
please call sysproccess in an own task with low prio
Last updated: 2024-06-20
Post by eschwellinger on SysProcessExecuteCommand2 and CANopen Device
CODESYS Forge
talk
(Post)
which runtime version is it? 4.11.0.0?
Last updated: 2024-06-21
Post by mubeta on Some 'pathetic' errors in SoftMotion program
CODESYS Forge
talk
(Post)
Hello everyone, I have a very simple program for the process, but it's driving me crazy and I can't see the problems I'm left with: Short topological description: Dual Core Berghof controller with softmotion runtime version 3.5.19.30; Two axes with servodrive on canopen bus, clocked distributed from master; Ethercat I/O node; 2 ms ethercat task, 2 ms canopen bus cycle time; I/O objects of the canopen master and canopen drives connected to the ethercat task cycle; Problem 1: Two separate programs each manage their own axis and drive, with separate state machines. A first axis moves primarily in velocity, except having to position itself absolutely at a predetermined point at the end of the job; the second axis, on the other hand, is a paper unwinder that changes, for each job cycle, from actions in absolute, relative, and cam displacement with the master axis. Well, the state machine of both axes was written in such a way as to call running the useful FB and change it on state change in this way: CASE i_stateMachine OF 0: o_Power(Enable := TRUE, bRegulatorOn := FALSE, bDriveStart := FALSE, Axis := o_PaperUnwinderAxis); o_MoveAbs(Execute := FALSE, Axis := o_PaperUnwinderAxis); o_MoveRel(Execute := FALSE, Axis := o_PaperUnwinderAxis); o_CamSelect(Execute := FALSE, Master := o_MachineAxis, Slave := o_PaperUnwinderAxis, CamTable := cam_PaperUnwinder); o_CamIn(Execute := FALSE, Master := MachineEncoder, Slave := o_PaperUnwinderAxis); o_CamOut(Execute := FALSE, Slave := o_PaperUnwinderAxis); o_SetPosition(Execute := FALSE, Axis := o_PaperUnwinderAxis); IF ... THEN i_StateMachine := 10; END_IF; 10: o_Power( Enable := TRUE, bRegulatorOn := TRUE, bDriveStart := TRUE, Axis := o_PaperUnwinderAxis ); IF o_Power.Status THEN i_StateMachine := 20; END_IF; 20: (* Avanzamento carta *) o_MoveAbs( Execute := TRUE, Position := o_Somewhere, Velocity := 25.0, Acceleration := 3666.7, Deceleration := 3666.7, Jerk := 48000.0, Direction := MC_DIRECTION.positive, Axis := o_PaperUnwinderAxis ); IF o_MoveAbs.Done THEN o_MoveAbs(Execute := FALSE, Axis := o_PaperUnwinderAxis); i_StateMachine := 30; END_IF 30: d_HomingPosition := ...; o_SetPosition( Execute := TRUE, Position := d_HomingPosition, Mode := FALSE, Axis := o_PaperUnwinderAxis ); (* ... *) IF o_SetPosition.Done = TRUE THEN o_SetPosition(Execute := FALSE, Axis := o_PaperUnwinderAxis ); o_LogServer.Append(sMessage := '...', lscClass := LOGSERVER_CLASS.ALWAYS, sdt := o_CommonsMgrData.systime.sdtLocal); i_StateMachine := 40; END_IF; 50: ... The code above is a sketchy example of what I wanted to write. But it gives me a spot problem: in some, the state change results in a drive error, which is unrecoverable except with a reinitialization via SM3_ReinitDrive(). Things are improved a little if in the program I always run the call of all softmotion blocks in this way: o_Power(Axis := o_PaperUnwinderAxis); o_Jog(Axis := o_PaperUnwinderAxis); o_Halt(Axis := o_PaperUnwinderAxis); o_MoveAbs(Axis := o_PaperUnwinderAxis); o_MoveRel(Axis := o_PaperUnwinderAxis); o_CamIn(Master := MachineEncoder, Slave := o_PaperUnwinderAxis); o_CamOut(Slave := o_PaperUnwinderAxis); If I don't execute all the calls of all the motion FBs used, when exchanging machine state often (but not always), the axis goes into error with event id THE_FB_WASNT_CALL... Done a little diagnostics it seems that the FBs return the bDone, before they are completely terminated. I tried doing the machine state exchange not with the bDone bit of the FBs, but with the 'standstill' state of the axis. It didn't seem to change anything. Problem 2: During the use SM3_ReinitDrive() I get the erro in the log: "NetID 0: SDO read error for object 16#607C..." Assuming that the device involved it's one of the two servodrive, (no others device are present in the network), I don't found any object 0x607C in the 'possible object list in/out' of the two drive, and I don't understand where this object can be listed. So any ideas and suggestions regarding these two issues will be very, very welcome. If you need the source project, I am willing to send it.
Last updated: 2024-07-17
Post by awarginaire on Codesys state running automatically
CODESYS Forge
talk
(Post)
Hello, I would like the PLC to open automatically in etat running. I have created a boot project but on startup the state is always stopped. What should I do?
Last updated: 2024-01-18
How to use more 4 instances of CANopen/Profibus/Modbus with The application-based license CODESYS Control
CODESYS Forge
talk
(Thread)
How to use more 4 instances of CANopen/Profibus/Modbus with The application-based license CODESYS Control
Last updated: 2023-11-02
Post by andre-luis on Check if Codesys runtime is on 'Running' or 'Stopped' state?
CODESYS Forge
talk
(Post)
It's already there, the service get started as default. I missed to say that sometimes it happens w/o even the system get restarted. Anyway, the main issue here is to know the state of the runtime. We collect a lot of informations about the whole system, and it would be nice to have a way to detect the runtime state.
Last updated: 2024-07-02
Post by timvh on Alarm Configuration Notification Action
CODESYS Forge
talk
(Post)
If it is a BOOL, then use: ...Error_Active := ALARM BOOL: ALARM INT: STATE
Last updated: 2024-05-14
Post by mos89p on Check if Codesys runtime is on 'Running' or 'Stopped' state?
CODESYS Forge
talk
(Post)
why not put it on windows startup ? to start at each start
Last updated: 2024-07-02
Post by dkugler on Step motor ECT60 Ethercat in codesys 3.5
CODESYS Forge
talk
(Post)
double click the master and the ECT60 and have a look what's shown in the tap online, state and log?
Last updated: 2024-08-14
Post by fazlinda on AWS IoT core CODESYS
CODESYS Forge
talk
(Post)
Hi, Im having a problem sending a data from my structure text code from codesys to aws. Instead of receiving {state {reported {data: 123}}} It display {state {reported {data: 123}}}\x00 \x00 \x00 \x00 \x00 \x00 \x00 Please help me solve this issues. how to remove \x00 ?
Last updated: 2023-12-06
Post by fazlinda on AWS IoT core CODESYS
CODESYS Forge
talk
(Post)
Hi, Im having a problem sending a data from my structure text code from codesys to aws. Instead of receiving {state {reported {data: 123}}} It display {state {reported {data: 123}}}\x00 \x00 \x00 \x00 \x00 \x00 \x00 Please help me solve this issues. how to remove \x00 ?
Last updated: 2023-12-06
Post by fazlinda on AWS IoT core CODESYS
CODESYS Forge
talk
(Post)
Hi, Im having a problem sending a data from my structure text code from codesys to aws. Instead of receiving {state {reported {data: 123}}} It display {state {reported {data: 123}}}\x00 \x00 \x00 \x00 \x00 \x00 \x00 Please help me solve this issues. how to remove \x00 ?
Last updated: 2023-12-06
Post by fazlinda on AWS IoT core CODESYS
CODESYS Forge
talk
(Post)
Hi, Im having a problem sending a data from my structure text code from codesys to aws. Instead of receiving {state {reported {data: 123}}} It display {state {reported {data: 123}}}\x00 \x00 \x00 \x00 \x00 \x00 \x00 Please help me solve this issues. how to remove \x00 ?
Last updated: 2023-12-06
Post by fazlinda on AWS IoT core CODESYS
CODESYS Forge
talk
(Post)
Hi, Im having a problem sending a data from my structure text code from codesys to aws. Instead of receiving {state {reported {data: 123}}} It display {state {reported {data: 123}}}\x00 \x00 \x00 \x00 \x00 \x00 \x00 Please help me solve this issues. how to remove \x00 ?
Last updated: 2023-12-06
Post by fazlinda on AWS IoT core CODESYS
CODESYS Forge
talk
(Post)
Hi, Im having a problem sending a data from my structure text code from codesys to aws. Instead of receiving {state {reported {data: 123}}} It display {state {reported {data: 123}}}\x00 \x00 \x00 \x00 \x00 \x00 \x00 Please help me solve this issues. how to remove \x00 ?
Last updated: 2023-12-06
Post by eschwellinger on EL6751 Canopen_Manager issue
CODESYS Forge
talk
(Post)
Think just add some CANopen Slaves and end resistors - then it will work ;-)
Last updated: 2023-09-12
Post by eschwellinger on Softmotion axis to CANopen Maxon IDX drive
CODESYS Forge
talk
(Post)
I would try to use the EDS file of the maxon drive.
Last updated: 2024-01-06
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
.