variable reference out of string
CODESYS Forge
talk
(Thread)
variable reference out of string
Last updated: 2016-01-15
REFERENCE TO in an array
CODESYS Forge
talk
(Thread)
REFERENCE TO in an array
Last updated: 2024-10-14
Post by squiggleypuff on RemoteTargetVisu creates Unresolved Reference
CODESYS Forge
talk
(Post)
I have a project with a Festo CPX-E-CEC-C1-PN PLC (Run-time version 3.5.12.50) that I have been developing on just fine using Codesys V3.5 SP19 Patch 5 (64bit). I am at the stage where I wanted to use the Festo HMI screen, and have added a RemoteTargetVisu object to my application. After adding this object, I am no longer able to log in to the PLC as I get an Unresolved Reference warning for 'USERMGRUSERGETPROPERTY' towards the end of the download process. I was able to find this post (https://forge.codesys.com/forge/talk/Visualization/thread/fc686a6cb2/) where the two possible solutions are to "set the placeholder to emtpy" or update the runtime. Problem is, I don't know how to do either of these things, as I'm still very green in Codesys land. I'd be happy to update the Festo PLC runtime, as that seems like the better option, but have not had any luck in finding a tutorial for this online. If anyone could point me in the right direction I'd appreciate it.
Last updated: 2024-03-19
Post by androidzz on Json Builder problem?
CODESYS Forge
talk
(Post)
I found my problem. The parentIndex from a new object was not connected to the root parent index
Last updated: 2024-03-11
Post by struccc on Release SP20 - Changes in behaviour?
CODESYS Forge
talk
(Post)
This... is not very practical for me - as I have a bunch of different classes - it's just doesn't seems to be very practical to define a NULL for each of them... Something like this I use in parameter definitions. For example: VAR_INPUT refVFD_Drive : REFERENCE TO FB_VFD_Drive := GVL_DUMMY.Dummy_VFD; END_VAR I use this to prepare objects for code I don't control: Typycally visualizations - had many troubles with references set on the fly, right before opening a corresponding visualization... And yes, the instance in GVL_Dummy reports itself as "Fake", so it does not influence the actual application at all. Actually this way I could invalidate a reference, just to set it to a "Dummy" instance.
Last updated: 2024-03-25
Post by narius on OPC-UA object instances preexisting in imported xml information model
CODESYS Forge
talk
(Post)
Hi all, is it possible to use object instances that are not instantiated by codesys itself, e.g. have been defined in UA-Modeler ? When I browse the plc with UA-Expert I see those instances, but I have not seen information in codesys or the web if these are writable in codesys. So far, I am under the impression, that it is not possible, but would like to hear from others. Also, is it correct, that it is not possible to create references inside codesys ? Thanks in advance and kr
Last updated: 2024-08-08
Post by tk096 on SMC_Interpolator + SMC_controAxislbyPos
CODESYS Forge
talk
(Post)
Hi, you can define a start position for your GCode. How the start position can be defined depends on the CompileMode: For File and SMC_CNC_REF: Set the start position input of SMC_NCInterpreter (https://content.helpme-codesys.com/en/libs/SM3_CNC/Current/SM_CNC_POUs/NC2/Interpreter/SMC_NCInterpreter.html) For SMC_OutQueue: * Right-click on the CNC object in the project tree * Select Properties * Select the tab 'CNC' * Set the start position Concerning your second question: If the new set position cannot be reached with the given velocity limit (AXIS_REF_SM3.fSWMaxVelocity), SMC_controlAxisByPos will report bStopIpo and close the 'gap' with the given gap dynamics (SMC_controlAxisByPos.fGap*).
Last updated: 2024-02-07
adding PG (Paramter Group) under CAN-J1939 and adding Information object under IEC60870 protocol
CODESYS Forge
talk
(Thread)
adding PG (Paramter Group) under CAN-J1939 and adding Information object under IEC60870 protocol
Last updated: 2017-06-13
How do I configure a visualisation text object to enter data?
CODESYS Forge
talk
(Thread)
How do I configure a visualisation text object to enter data?
Last updated: 2016-05-20
[OOP] Use extended interface instead of base interface as a method return object
CODESYS Forge
talk
(Thread)
[OOP] Use extended interface instead of base interface as a method return object
Last updated: 2017-03-02
Post by struccc on Release SP20 - Changes in behaviour?
CODESYS Forge
talk
(Post)
Dear all, I've just started to migrate some of my ancient projects to SP20. There is one strange error (?) I have noticed so far. In a method call, depending on the circumstances I would like to return reference to an object, or an invalid reference: METHOD Add_EVT_OUT : REFERENCE TO FB_MSG VAR END_VAR IF __ISVALIDREF(refMSG_Entry) THEN Add_EVT_OUT REF= MANAGER.AddMsg_EVT_OUT( refMSG_Entry, _Get_EVT_Message(MSG_EVENT.OUT), _Get_EVT_AddCode(MSG_EVENT.OUT) )^; ELSE Add_EVT_OUT := 0; END_IF So far setting a reference variable to 0, did this. But now, the expression Add_EVT_OUT := 0; gives an error: [ERROR] DB_WTP_370: Add_EVT_ACK MSG_TRIGGER_EXT: C0032: Cannot convert type 'BIT' to type 'REFERENCE TO FB_MSG' Naturally... I can write: Add_EVT_OUT := DWORD#0; But is this the correct way? Is there any constant I could use instead, like "NULL"? Or this is totally wrong and to be avoided?
Last updated: 2024-03-24
Post by manuknecht on Using SMC_MOVTYP.INITPOS without specifying the start position
CODESYS Forge
talk
(Post)
I am using the object SMC_GEOINFO to generate a trajectory and move a system accordingly using the SMC_INTERPOLATOR function block similar to the sample project CNC10_DynamicPath.project. According to the documentation, the movement type INITPOS does not require a start position in the SMC_GEOINFO object, which is confirmed in the documentation of the SMC_GEOINFO object. When using the movement type INITPOS however, the motion will still start from the starting point defined in the SMC_GEOINFO object (0,0,0 if not specified otherwise). Does someone know how to resolve this or is there an example project that makes use of the INITPOS movement type without specifying the starting point? Thanks in advance!
Last updated: 2023-12-15
how to set custom from/to timestamp in Trend
CODESYS Forge
talk
(Thread)
how to set custom from/to timestamp in Trend
Last updated: 2020-03-31
Properties: Probleme beim Import von Set- und Get-Methoden
CODESYS Forge
talk
(Thread)
Properties: Probleme beim Import von Set- und Get-Methoden
Last updated: 2010-10-07
Failure to set the Ethercat slave in boot mode
CODESYS Forge
talk
(Thread)
Failure to set the Ethercat slave in boot mode
Last updated: 2020-09-15
Modbus TCP Master: how to set delay between request?
CODESYS Forge
talk
(Thread)
Modbus TCP Master: how to set delay between request?
Last updated: 2019-11-22
Set Kinematics Configuration of 6-DOF Robot
CODESYS Forge
talk
(Thread)
Set Kinematics Configuration of 6-DOF Robot
Last updated: 2018-10-20
ST editor Bookmarks - how to set with name automatically?
CODESYS Forge
talk
(Thread)
ST editor Bookmarks - how to set with name automatically?
Last updated: 2021-06-09
I2C How to set repeated start condition?
CODESYS Forge
talk
(Thread)
I2C How to set repeated start condition?
Last updated: 2017-04-15
How can i set or reset an analog function?
CODESYS Forge
talk
(Thread)
How can i set or reset an analog function?
Last updated: 2019-07-29
Get and Set Values On Running Application in Plc
CODESYS Forge
talk
(Thread)
Get and Set Values On Running Application in Plc
Last updated: 2019-11-20
set breakpoint in FB instance possible ?
CODESYS Forge
talk
(Thread)
set breakpoint in FB instance possible ?
Last updated: 2012-10-19
Modbus channels and a device with large set of parameters
CODESYS Forge
talk
(Thread)
Modbus channels and a device with large set of parameters
Last updated: 2022-10-06
Usb-toCan II ixxat how to set up comunication?
CODESYS Forge
talk
(Thread)
Usb-toCan II ixxat how to set up comunication?
Last updated: 2013-06-05
Unable to set function code 0x780 for CANopen rxpdo5
CODESYS Forge
talk
(Thread)
Unable to set function code 0x780 for CANopen rxpdo5
Last updated: 2017-03-08
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
.