Search talk: -128到127是什么数据类型

 
<< < 1 .. 213 214 215 216 217 .. 907 > >> (Page 215 of 907)

Post by davemansell on explicit cast ENUM to UINT and vice versa CODESYS Forge talk (Post)
This is from sometime ago but below might help someone else; this could be done via POINTERS. Make sure you protect for NULL pointers etc if you take this approach. // DECLARATION myEnumValue : enumMyEnum; u8 : USINT; pmyEnumValue : POINTER TO enumMyEnum; pu8 : POINTER TO USINT; // CODE pu8 := ADR(u8); pmyEnumValue := pu8; myEnumValue := pmyEnumValue^; // dereference the pointer
Last updated: 2025-08-21

explicit cast ENUM to UINT and vice versa CODESYS Forge talk (Thread)
explicit cast ENUM to UINT and vice versa
Last updated: 2025-08-21

Post by davemansell on explicit cast ENUM to UINT and vice versa CODESYS Forge talk (Post)
This is from sometime ago but below might help you could do this via POINTERS. Make sure you protect for NULL pointers etc if you take this approach. // DECLARATION myEnumValue : enumMyEnum; u8 : USINT; pmyEnumValue : POINTER TO enumMyEnum; pu8 : POINTER TO USINT; // CODE pmyEnumValue := pu8; myEnumValue := pmyEnumValue^; // dereference the pointer
Last updated: 2025-08-21

Post by wagokurt on CODESYS Visualization M License Fails to activate on Linux SL CODESYS Forge talk (Post)
I have successfully activated a CODESYS Control Performance M on a Linux IPC. When I try to activate the CODESYS Visualization M license it fails with this error. Any ideas? This is a WAGO 752-9401 FW4, running Debian 12.
Last updated: 2025-08-21

Post by wagokurt on CODESYS Visualization M License Fails to activate on Linux SL CODESYS Forge talk (Post)
This is what is on the device, is this correct? I did not see an option to install TargetVisu, is this needed?
Last updated: 2025-08-21

Post by morecoffee on Control for Raspberry Pi 4.17 CODESYS Forge talk (Post)
I am currently having the issue that Codesyscontrol only runs for 10 seconds on my Raspberry Pi 4. I believe the problem is because the MAC address range is of the Raspberry is 88:A2:9E:XX:XX:XX. When will Codesys Control For Raspberry Pi 4.17.0.0 be released to fix this issue?
Last updated: 2025-08-22

Why is Application_DataLog.sqlite not moved to my directory CODESYS Forge talk (Thread)
Why is Application_DataLog.sqlite not moved to my directory
Last updated: 2025-08-22

Post by pernockham on Persistence Manager: Config File not found? CODESYS Forge talk (Post)
I still cannot enable persistent manager for my project (and successfully login to a device). Project compiles with no errors but during download/login it fails with the fairly limited message "one or more errors occurred". The only clue I get from the system that this messages is displayed during "Generating code..: relocation pou". Any tips pointing me in a direction how to solve this very much appreciated!
Last updated: 2025-08-22

Post by davidbo on Why is Application_DataLog.sqlite not moved to my directory CODESYS Forge talk (Post)
In CODESYScONTROL_User.cfg I have [SysFile] FilePath.1=/etc/, .dat FilePath.2=/home/pi/DataLog/, .sqlite, .sqlite.metadata, .sqlite-journal, .sqlite.tmp PlcLogicPrefix=1 Should that not write the Application_DataLog.sqlite in the /home/pi/DataLog/ directory? Or how do move the working directory for AC_Datalog ?
Last updated: 2025-08-22

Post by pernockham on Persistence Manager: Config File not found? CODESYS Forge talk (Post)
Ok, think I understand. The reason for the error is I try to include complex variables (FB) in the persistenced data. I will try to use {attribute 'ac_persist_exclude'} to exclude those elements.
Last updated: 2025-08-22

Post by wagokurt on TargetVisu option missing in IDE CODESYS Forge talk (Post)
When I open the project, I always get this notice. It never actually updates the CmpTargetVisu.. Is this a bug?
Last updated: 2025-08-22

Post by eschwellinger on TargetVisu option missing in IDE CODESYS Forge talk (Post)
It is not needed to add Targetvisu connector - for using the TargetVisu for Linux. The reason is - TargetVisu for Linux is basically a remote TargetVisu which could connect to any CODESYS plc not only the loacal one - therefore only a Webvisu connector is needed to have it work. & it seems a bug with this anoying update proposal.
Last updated: 2025-08-23

exple1 CODESYS Forge talk (Thread)
exple1
Last updated: 2025-08-23

Post by raamkumar on exple1 CODESYS Forge talk (Post)
```structured text VAR bStartButton : BOOL; // Start button input bStopButton : BOOL; // Stop button input bMotorRunning : BOOL := FALSE; // Motor running status END_VAR // Motor control logic IF bStartButton AND NOT bMotorRunning THEN bMotorRunning := TRUE; // Start motor END_IF; IF bStopButton THEN bMotorRunning := FALSE; // Stop motor END_IF; // Output to motor driver (replace with your actual output) // Assume 'qMotor' is a boolean output to the motor driver. qMotor := bMotorRunning;
Last updated: 2025-08-23

Post by franciscocuevas on Gateway CODESYS Forge talk (Post)
other
Last updated: 2025-08-23

Gateway CODESYS Forge talk (Thread)
Gateway
Last updated: 2025-08-23

Post by franciscocuevas on Gateway CODESYS Forge talk (Post)
Hi I'm trying to gateway with my raspberry pi 3+ but it was impossible. I install all de package. I have de pi in local ip, it reconise but don't connect.I also try with ethernet, I put ip static but don't go . Somebody can help me?
Last updated: 2025-08-23

Post by pernockham on Persistence Manager: Config File not found? CODESYS Forge talk (Post)
Confirmed. Variable types that should be excluded: BIT Pointer Interfaces Constants Arrays of non-persistent data types Docs: https://content.helpme-codesys.com/en/CODESYS%20Application%20Composer/ac_pm_definition_persistent_variables.html
Last updated: 2025-08-24

Post by nilanjan on I want to show the current recipe name in the visualization screen CODESYS Forge talk (Post)
I am having some trouble showing the current recipe name in visualization i am not using the RecipeManCommands i am using the inbuild visualization feature of Saving and Loading recipes. I need it so the user would have a track on which recipe is being used currently.
Last updated: 2025-08-24

Post by franciscocuevas on RaspberryPi 5 gateway problem CODESYS Forge talk (Post)
I have the same problem, have you resolve?Are you conected by wifi or ethernet?I was fighting 4 days and I decide to leave.
Last updated: 2025-08-24

Post by bhavinkumar on Codesys v3.5 SP4 Patch 1 pbF: Internal error while opening archive with projects.open_archive() CODESYS Forge talk (Post)
Hi, Pierre, did you get solutation for that ? I have an accuring same problem.
Last updated: 2025-08-25

Codesys v3.5 SP4 Patch 1 pbF: Internal error while opening archive with projects.open_archive() CODESYS Forge talk (Thread)
Codesys v3.5 SP4 Patch 1 pbF: Internal error while opening archive with projects.open_archive()
Last updated: 2025-08-25

Post by antonz on CoDeSys v3.5: creating libraries for both 32-bit and 64-bit controllers CODESYS Forge talk (Post)
Looking for thoughts on creating libraries that can be used on both 32-bit and 64-bit controllers. We are currently writing software in CoDeSys for both target types and will continu to do so for the near future. Projects are always unique, no straight forward copy/paste, yet there is enough similarity between them to use libraries for recurring logic. I do not want to create and maintain twice for both platforms if this is not absolutely necessary. I am aware of useful datatypes like __XWORD, __XINT, __UXINT. Still looking for more information and/or sample code for portable pointer arithmetic. In addition to that: how should one go about when creating and working with compiled libraries? Would I need to compile the same lib twice, once for 32-bit targets once for 64-bit targets? I would end up with two different libs with the same namespace, which does not sound elegant to me. Note: I did not intentionally make the previous paragraph bold. The forge forum software seems to do this automatically upon insertion of a word which starts with two underscores, e.g. __XWORD (yeah, here we go again :) )
Last updated: 2025-08-25

Post by tonyadrem on update data/tim CODESYS Forge talk (Post)
Hello How to update the dates from timestamp to the actual time? THX!
Last updated: 2025-08-25

Post by tonyadrem on update data/tim CODESYS Forge talk (Post)
Hello How to update the dates from timestamp to the actual time? THX!
Last updated: 2025-08-25

<< < 1 .. 213 214 215 216 217 .. 907 > >> (Page 215 of 907)

Showing results of 22673

Sort by relevance or date