Search talk: command to read device name

 
<< < 1 .. 50 51 52 53 54 .. 189 > >> (Page 52 of 189)

Post by berto on Opening PDF in Web Browser in Target Visu HMI CODESYS Forge talk (Post)
Hi everybody, I've been facing problems with the PDF visualization in Web Browser. I am trying to open a pdf file called 'sample.pdf' which I manually saved inside PlcLogic/visu folder. I am setting the web browser URL as: 'http://127.0.0.1:8080/sample.pdf' but I get 'refused connection'. I got a similar error trying to open https sites and I discovered that I can only open http websites. Opening 'http://de.wikipedia.org' everything works fine. I also tried to check using code whether the sample.pdf is present in the directory. Unfortunately, when I try to read directories of 'PlcLogic' I get file FILE_OPERATION_DENIED (I am using File.DirList). I would like to be able to open PDF files in web browser. Possibly to move new PDF files in the folder as my customer wants to display different pdf manuals on the hmi. Here you find some screenshots and my .project. I am using Codesys 3.5.19.70. Best regards, Berto
Last updated: 2024-07-11

Post by trusty-squire on CNC - How to manipulate SMC_GeoInfo objects CODESYS Forge talk (Post)
I have an application using CNC GCode interpolation, but I need to modify the GCode provided to the PLC based on certain parameters. I am currently attempting to modify the SMC_GeoInfo objects in the SMC_OutQueue using the code below. Note that all the other code is pretty standard and works fine, but when I add the below it errors. PROGRAM TEST VAR fbReadCncFile : SMC_ReadNCFile2; fbCncInterpreter : SMC_NCInterpreter; arrCncInterpreter : ARRAY[1..99] OF SMC_GeoInfo; pGeoInfo: POINTER TO SMC_GeoInfo; giGeoInfo: SMC_GeoInfo; // ... END_VAR // ... Some code here in order to read CNC file using SMC_ReadNCFile2 and provide to SMC_NCInterpreter pGeoInfo := SMC_GetObj(poq:=ADR(fbCncInterpreter.poqDataOut), n:=1); IF pGeoInfo <> 0 THEN giGeoInfo := pGeoInfo^; // Do some manipulation here, then update the queue at the same position MC_SetObj(poq:=ADR(fbCncInterpreter.poqDataOut) , n:=0 , pgi:=ADR(giGeoInfo) ); END_IF It throws an error when I get to the line giGeoInfo := pGeoInfo^; Error: EXCEPTION [AccessViolation] occured: App=[Sim.Device.Application], Task=[PathTask] How do I use SMC_GetObj and access the data? It creates a pointer with the value as shown in the photo, but all the dereferenced values say dereference of invalid pointer.
Last updated: 2024-07-26

Post by julianramirez on ModbusFB write update CODESYS Forge talk (Post)
Hello everyone, I am testing the ModbusFB library tcp server and so far I am able to create holding registers successfully, however, I am trying to identify after each write which registers got updated (i.e. function code, write value). I can even see the var udiNumWriteRequests, which increases with every write. I noticed that there is logging with the LogStatusInfo method. After I call it I am able to read in the console stuff that I want. Nevertheless, this is only available at the logs and is not easy to decode because it consists on several messages, I would like to know if there is a way for me to retrieve this information from the function itself with pointers or if there is any way to copy the logs messages (assuming that I can filter them with the LoggingOptions to only show what I need) inside the runtime code and not in the console. Thanks for your help :)
Last updated: 2024-09-16

How to configure CODESYSControl_User.cfg in order to use a specific network card for OPCUA Server CODESYS Forge talk (Thread)
How to configure CODESYSControl_User.cfg in order to use a specific network card for OPCUA Server
Last updated: 2023-08-28

how to transfer raspberrypi runtime license from sdcard to dongle without the original raspi? CODESYS Forge talk (Thread)
how to transfer raspberrypi runtime license from sdcard to dongle without the original raspi?
Last updated: 2021-04-13

What is the best way to upgrade a project to a new version of Codesys? CODESYS Forge talk (Thread)
What is the best way to upgrade a project to a new version of Codesys?
Last updated: 2022-03-01

I want to use the function of PVT to realize move CODESYS Forge talk (Thread)
I want to use the function of PVT to realize move
Last updated: 2013-05-14

How to intercept a variation in the RetainPerstist variables (for saving to file) CODESYS Forge talk (Thread)
How to intercept a variation in the RetainPerstist variables (for saving to file)
Last updated: 2018-08-03

How to set "Always updatevariables" to "enable 2" by default in DeviceDescription. CODESYS Forge talk (Thread)
How to set "Always updatevariables" to "enable 2" by default in DeviceDescription.
Last updated: 2020-12-10

Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs CODESYS Forge talk (Thread)
Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs
Last updated: 2023-10-02

Can't connect to my raspberry pi 3 after I tried to adjust CODESYScontrol.cfg CODESYS Forge talk (Thread)
Can't connect to my raspberry pi 3 after I tried to adjust CODESYScontrol.cfg
Last updated: 2021-06-17

How to generate PDO explicit request with RTR flag to TRUE CODESYS Forge talk (Thread)
How to generate PDO explicit request with RTR flag to TRUE
Last updated: 2018-06-13

Codesys closes instantly after I try to download to PLC CODESYS Forge talk (Thread)
Codesys closes instantly after I try to download to PLC
Last updated: 2022-12-21

Unable to get retain variables to work in a specific Raspberry Pi project CODESYS Forge talk (Thread)
Unable to get retain variables to work in a specific Raspberry Pi project
Last updated: 2019-12-03

Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT' CODESYS Forge talk (Thread)
Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT'
Last updated: 2021-04-26

what to do in case of a writing error to eeprom CODESYS Forge talk (Thread)
what to do in case of a writing error to eeprom
Last updated: 2020-11-26

Beaglebone Black - only one Ethernet port - how to connect to LAN, and EtherCAT? CODESYS Forge talk (Thread)
Beaglebone Black - only one Ethernet port - how to connect to LAN, and EtherCAT?
Last updated: 2022-01-16

Trying to Use Python Script to Exclude Certain Objects from Build CODESYS Forge talk (Thread)
Trying to Use Python Script to Exclude Certain Objects from Build
Last updated: 2019-08-20

Attempt to upgrade a pi 3 from a working V3.5.11 to V3.5.15 fails CODESYS Forge talk (Thread)
Attempt to upgrade a pi 3 from a working V3.5.11 to V3.5.15 fails
Last updated: 2021-07-13

Unable to connect to sensor even after Log says successful connection (Ethernet/IP) CODESYS Forge talk (Thread)
Unable to connect to sensor even after Log says successful connection (Ethernet/IP)
Last updated: 2022-06-29

How to change data format of 'Trend' time data to DT or something else CODESYS Forge talk (Thread)
How to change data format of 'Trend' time data to DT or something else
Last updated: 2021-05-10

Is it possible to send a real value close to 0 through modbus? CODESYS Forge talk (Thread)
Is it possible to send a real value close to 0 through modbus?
Last updated: 2023-02-25

how to use the C or C++ to programme in CODESYS CODESYS Forge talk (Thread)
how to use the C or C++ to programme in CODESYS
Last updated: 2013-05-12

How to get the Raspberry Pi PLC to control a Siemens PLC with OPC server CODESYS Forge talk (Thread)
How to get the Raspberry Pi PLC to control a Siemens PLC with OPC server
Last updated: 2018-11-09

How to measure the time it takes to compile a program in codesys? CODESYS Forge talk (Thread)
How to measure the time it takes to compile a program in codesys?
Last updated: 2020-12-04

<< < 1 .. 50 51 52 53 54 .. 189 > >> (Page 52 of 189)

Showing results of 4717

Sort by relevance or date