Post by talhaali on Alarm status in logic
CODESYS Forge
talk
(Post)
Hi, I am trying to access active alarms in code(As alarm count variable updates only when we go to to alarm table frame in visualization). I wrote following code but it is not working: VAR iCountActiveAlarms : INT; parritfActiveAlarms : POINTER TO ARRAY[0..0] OF IAlarm; itfAlarmManagerClientAll : IAlarmManagerClient; END_VAR AlarmManager.g_AlarmHandler.GetActiveAlarms( itfAlarmManagerClient :=itfAlarmManagerClientAll, iCountActiveAlarms => iCountActiveAlarms, parritfActiveAlarms => parritfActiveAlarms); The Value is always 0. Please help.
Last updated: 2024-06-06
Post by caprez95 on Deleting the trend recording history
CODESYS Forge
talk
(Post)
Hallo Ich möchte eine laufende Trendaufzeichnung stoppen, den Inhalt löschen und Trend-Diagramm auf 0 zurücksetzen. Laut Codesys soll das mit dem folgenden Code möglich sein: You can insert an input element in the visualization which the operator can use to delete the previous value recording in the trend visualization at runtime. The curve displayed until then is removed and the display starts over. In the application (example: in the program PLC_PRG), implement the following code: itfTrendRecording : ITrendRecording; itfTrendStorageWriter : ITrendStorageWriter; itfTrendStorageWriter3 : ITrendStorageWriter3; sTrendRecordingName : STRING := 'TrendRecording'; itfTrendRecording := GlobalInstances.g_TrendRecordingManager.FindTrendRecording(ADR(sTrendRecordingName)); xClearHistoryTrend: BOOL; IF xClearHistoryTrend THEN itfTrendRecording := GlobalInstances.g_TrendRecordingManager.FindTrendRecording(ADR(sTrendRecordingName)); IF itfTrendRecording <> 0 THEN itfTrendStorageWriter := itfTrendRecording.GetTrendStorageWriter(); IF __QUERYINTERFACE(itfTrendStorageWriter, itfTrendStorageWriter3) THEN itfTrendStorageWriter3.ClearHistory(); END_IF END_IF In the visualization of the trend recording, add a button for deleting the previous curve. Configure its Toggle property with the variable PLC_PRG.xClearHistoryTrend. ⇒ When xClearHistoryTrend is set to TRUE, the previously recorded curve is deleted. The recording immediately starts again. Dies löscht auch die Daten vom Trend, aber das Diagramm wird nicht auf 0 zurückgesetzt, sondern läuft einfach da weiter wo man gestoppt hat. Braucht es für den Diagramm-Reset noch einen zusätzlichen Befehl? Gruss
Last updated: 2024-06-11
Post by enricoghisla on Functional block
CODESYS Forge
talk
(Post)
How can i access to the variable in the FB from outside without put them in the in/out?
Last updated: 2024-04-16
Post by enricoghisla on Functional block
CODESYS Forge
talk
(Post)
How can i access to the variable in the FB from outside without put them in the in/out?
Last updated: 2024-04-16
CAN-FD communication driver
CODESYS Forge
talk
(Thread)
CAN-FD communication driver
Last updated: 2022-12-22
CAN Adressen
CODESYS Forge
talk
(Thread)
CAN Adressen
Last updated: 2009-04-06
NO CAN DRIVER!!!
CODESYS Forge
talk
(Thread)
NO CAN DRIVER!!!
Last updated: 2021-11-04
USB - CAN communication
CODESYS Forge
talk
(Thread)
USB - CAN communication
Last updated: 2009-10-10
PMX - CAN bus - FRAS4
CODESYS Forge
talk
(Thread)
PMX - CAN bus - FRAS4
Last updated: 2014-07-25
CAN bus master
CODESYS Forge
talk
(Thread)
CAN bus master
Last updated: 2017-07-19
CAN Layer2
CODESYS Forge
talk
(Thread)
CAN Layer2
Last updated: 2017-11-09
CAN on TM241
CODESYS Forge
talk
(Thread)
CAN on TM241
Last updated: 2015-07-29
CAN through SPI PI3?
CODESYS Forge
talk
(Thread)
CAN through SPI PI3?
Last updated: 2017-11-19
CAN Kommunikation
CODESYS Forge
talk
(Thread)
CAN Kommunikation
Last updated: 2013-01-14
CAN through PI2
CODESYS Forge
talk
(Thread)
CAN through PI2
Last updated: 2016-04-20
codemeter can update UFC_SoftContainer_CmRuntime.WibuCmLif
CODESYS Forge
talk
(Thread)
codemeter can update UFC_SoftContainer_CmRuntime.WibuCmLif
Last updated: 2023-08-16
CAN Layer2 on Raspberry
CODESYS Forge
talk
(Thread)
CAN Layer2 on Raspberry
Last updated: 2014-09-26
CAN
CODESYS Forge
talk
(Thread)
CAN
Last updated: 2012-07-25
Can Botschaften unterer Layer
CODESYS Forge
talk
(Thread)
Can Botschaften unterer Layer
Last updated: 2018-12-01
Can Sae J1939
CODESYS Forge
talk
(Thread)
Can Sae J1939
Last updated: 2015-09-16
Interogate Can Slave
CODESYS Forge
talk
(Thread)
Interogate Can Slave
Last updated: 2012-03-31
CAN BUS
CODESYS Forge
talk
(Thread)
CAN BUS
Last updated: 2009-07-08
Can open mapping
CODESYS Forge
talk
(Thread)
Can open mapping
Last updated: 2020-06-04
Locked PDO CAN
CODESYS Forge
talk
(Thread)
Locked PDO CAN
Last updated: 2020-06-03
WHAT CAN HANDLES?
CODESYS Forge
talk
(Thread)
WHAT CAN HANDLES?
Last updated: 2015-03-03
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
.