Search talk: get type

 
<< < 1 .. 7 8 9 10 11 .. 43 > >> (Page 9 of 43)

Post by pethun on Upgrade from codesys 3.5.19 to 3.5.20 CODESYS Forge talk (Post)
Hi We upgraded our ptoject from 3.5.19 to 3.5.20 but we get an error message in the latest version. We made our own trend function and its related to this we get error message: Trend_Menu Device: PLC Logic: Application: C0032: Cannot convert type 'RTS_SYSTIMEDATE(systimertc, 3.5.20.0 (system))' to type 'RTS_SYSTIMEDATE(systimertc, 3.5.17.0 (system))' The variables are defined as follow: start : SysTimeRtc.SYSTIMEDATE; end : SysTimeRtc.SYSTIMEDATE; The code that creates the error is the variable start and end IF xAssign THEN xAssign := FALSE; xPanEnable := FALSE; xZoomEnable := FALSE; drs.liFrom := VisuTrendStorageAccess.TrendStorageConvertToTimestamp(start, 0 (us)); drs.liTo := VisuTrendStorageAccess.TrendStorageConvertToTimestamp(end, 0 (us)); drs.m_itfDateRangeSelectorClient.SetCurrentRange(drs.liFrom, drs.liTo); END_IF I cant understand really what the error message means and what can be the cause of the error? It compiles fine in dthe older codesys 3.5.19. If anyone has some experience of this please help us out? We must upgrade due to the new licenses. Thanks
Last updated: 2024-04-20

Post by alexgooi on Init Array input on a method CODESYS Forge talk (Post)
Dear Forum, I would like to initialize an array input on a method. When I do this, I get the following error: "The type of ARRAY [1..2] OF BOOL cannot have a default value in this context." I attached a picture for more clarity. Is this simply not possible or is there a different way of tackling this problem? Thank you in advance
Last updated: 2024-02-26

Post by k4zz on Static Code Analysis CODESYS Forge talk (Post)
I've already experimented with two methods, but unfortunately, they only function with projects of type *.project. Consequently, when executing: system.commands["staticanalysis", "run"].execute() For the 2nd Option: You'll need to ensure that in the Static Analysis Settings, the option "Perform static analysis automatically after compilation" is checked. # get Project values myProject = projects.primary # Creates an active application app = myProject.active_application # build Application and run static code analysis app.generate_code()
Last updated: 2024-03-15

Post by fefefede on Get the numer of day CODESYS Forge talk (Post)
Hello i tro to create a program to turn on or off the air condition in relationship temperature and numer of day. I can't get the number of day. I try this after installing SysTime library but this not work and have this error on debug ------ Build started: Application: Device.Sim.Device.Application ------- Typify code... Generate code... [ERROR] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0032: Cannot convert type 'Unknown type: 'SysTimeCore(TRUE)'' to type 'TIME' [ERROR] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0035: Program name, function or function block instance expected instead of 'SysTimeCore' [ERROR] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0032: Cannot convert type 'Unknown type: 'DayOfWeek(CurrentTime)'' to type 'INT' [ERROR] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0035: Program name, function or function block instance expected instead of 'DayOfWeek' [INFORMATION] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0181: Related position Build complete -- 4 errors, 0 warnings : No download possible PROGRAM PLC_PRG VAR Temperatura: UDINT; AriaCondizionata: BOOL := FALSE; CurrentDayOfWeek: INT; //Variabile Giorno CurrentTime: TIME; GiornoDellaSettimana: INT; DayOfWeek: INT; END_VAR CurrentTime := SysTimeCore(TRUE); // Ottieni l'ora corrente CurrentDayOfWeek := DayOfWeek(CurrentTime); CASE GiornoDellaSettimana OF 1: // Azioni per Lunedì 2: // Martedì se più 10° accend altrimenti spegni IF Temperatura >= 10 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 3: // Mercoledì se più di 50° accendi altrimenti spegni IF Temperatura >=50 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 4: // Giovedì se più di 40° accendi altrimenti spegni IF Temperatura >=40 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 5: // Venerdì se più di 50° accendi altrimenti spegni IF Temperatura >=50 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 6: // Sabato se più di 25° accendi altrimenti spegni IF Temperatura >=25 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 7: // Domenica sempre spenta AriaCondizionata := FALSE; END_CASE
Last updated: 2023-09-14

Post by snhatton on Add device greyed out CODESYS Forge talk (Post)
What type of PLC are you using?
Last updated: 2023-12-19

Post by snhatton on Add device greyed out CODESYS Forge talk (Post)
What type of PLC are you using?
Last updated: 2023-12-19

Post by eschwellinger on Add licence CODESYS Forge talk (Post)
Which plc and in which version? Runtime Type? Runtime Version?
Last updated: 2024-01-05

Post by abauza on Type mappings in Datasource CODESYS Forge talk (Post)
Hi I have the same problem, any solution for this? Thanks
Last updated: 2024-09-12

How to call the same program from library and get the vars updated. CODESYS Forge talk (Thread)
How to call the same program from library and get the vars updated.
Last updated: 2023-08-23

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

how to get a list of the cross reference of one variable CODESYS Forge talk (Thread)
how to get a list of the cross reference of one variable
Last updated: 2018-01-17

Can't get the IEC var address correcttly when using the function "IecVarAccGetAddress 2" CODESYS Forge talk (Thread)
Can't get the IEC var address correcttly when using the function "IecVarAccGetAddress 2"
Last updated: 2018-12-25

ModbusTCP, can i know when i get requests from slave side? CODESYS Forge talk (Thread)
ModbusTCP, can i know when i get requests from slave side?
Last updated: 2018-11-19

Several py file share one external file to get some default value CODESYS Forge talk (Thread)
Several py file share one external file to get some default value
Last updated: 2019-12-12

Cannot get Standard 3.5.9.0 R_TRIG functions to work on RaspberryPi3B 1.3.0.0 CODESYS Forge talk (Thread)
Cannot get Standard 3.5.9.0 R_TRIG functions to work on RaspberryPi3B 1.3.0.0
Last updated: 2016-10-16

FbHTTPs_Get how to get data from a website and use it in codesys CODESYS Forge talk (Thread)
FbHTTPs_Get how to get data from a website and use it in codesys
Last updated: 2021-11-23

Get-Property will crash because it did not evaluate to a valid getter CODESYS Forge talk (Thread)
Get-Property will crash because it did not evaluate to a valid getter
Last updated: 2023-04-29

Raspberry pi get the /dev/ttyUSB number, how you do it? CODESYS Forge talk (Thread)
Raspberry pi get the /dev/ttyUSB number, how you do it?
Last updated: 2021-07-23

Is there any way to get the name of the current action... pou... CODESYS Forge talk (Thread)
Is there any way to get the name of the current action... pou...
Last updated: 2017-03-20

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 get the amount of free disk space in a plc CODESYS Forge talk (Thread)
How to get the amount of free disk space in a plc
Last updated: 2022-08-08

How to get the SD card Image for the Raspberry Pi CODESYS Forge talk (Thread)
How to get the SD card Image for the Raspberry Pi
Last updated: 2015-12-21

VAR_INFO from inside of a FB to get info on the instance. CODESYS Forge talk (Thread)
VAR_INFO from inside of a FB to get info on the instance.
Last updated: 2019-12-04

How can I get started to write my own drivers for RPI? CODESYS Forge talk (Thread)
How can I get started to write my own drivers for RPI?
Last updated: 2014-03-07

Every time I display the watch 1 window, I get a .Net exception CODESYS Forge talk (Thread)
Every time I display the watch 1 window, I get a .Net exception
Last updated: 2020-02-24

<< < 1 .. 7 8 9 10 11 .. 43 > >> (Page 9 of 43)

Showing results of 1068

Sort by relevance or date