Search talk: Data Type bool

 
<< < 1 .. 14 15 16 17 18 .. 37 > >> (Page 16 of 37)

Post by ton on How to create a stopwatch? CODESYS Forge talk (Post)
One i wrote this to measure elepse time When xMeasure is true is starts en when false it stops and time is messured. FUNCTION_BLOCK FB_ElapseTime VAR_INPUT xMeasure: BOOL; END_VAR VAR_OUTPUT xRisingEdge: BOOL; xFallingEdge: BOOL; tElapsed: TIME; ltElapsed: LTIME; ltPrev_Elapsed: LTIME; ltElapsedMax: LTIME; END_VAR VAR xLastValue: BOOL; LTIMEStart: LTIME; LTIMEEnd: LTIME; tonReset: TON:= (IN:= TRUE, PT:= TIME#30S0MS); END_VAR ------------------------------------------- xRisingEdge:= (xLastValue XOR xMeasure) AND xMeasure; xFallingEdge:= (xLastValue XOR xMeasure) AND NOT xMeasure; IF xRisingEdge THEN ltPrev_Elapsed:= ltElapsed; LTIMEStart:= LTIME(); END_IF IF xMeasure OR xFallingEdge THEN LTIMEEnd:= LTIME(); END_IF ltElapsed:= LTIMEEnd - LTIMEStart; ltElapsedMax:= MAX(ltElapsedMax, ltElapsed); tElapsed:= LTIME_TO_TIME(ltElapsed); xLastValue:= xMeasure; tonReset(); IF tonReset.Q THEN tonReset.IN:= FALSE; ltElapsedMax:= LTIME#0NS; END_IF Meaby this will help.
Last updated: 2023-12-09

Post by jampid on PersistentVars and Webvisu Element CODESYS Forge talk (Post)
Bonjour, est-ce que les espaces de noms des variables sont bien indiqu dans les commutateurs ? Je viens de faire un petit essai: OK {attribute 'qualified_only'} VAR_GLOBAL PERSISTENT RETAIN xBit1: BOOL:=1; xbit2: BOOL:=1; END_VAR Déclaration de variable dans le commutateur (et aussi dans un voyant pour le test) :PersistentVars.xBit1 Bon développement!
Last updated: 2025-04-07

Post by kees-b on Enumeration CODESYS Forge talk (Post)
Hello, Can anyone give me advice or tell me what I'm doing "wrong"? I use "enumeration", but via, via (maybe that's the problem?) Similar situation in Codesys 2.3 this worked correctly. Now the BOOL is not found in the ENUM. GVL.g_IPC2AMK.dwDO.DO_AMK_REMOTE_ACTIVE GVL = Global Variabel List g_IPC2AMK = STRUCT dwDO = ENUM DO_AMK_REMOTE_ACTIVE = BOOL
Last updated: 2024-02-06

Post by kees-b on Enumeration CODESYS Forge talk (Post)
Hello, Can anyone give me advice or tell me what I'm doing "wrong"? I use "enumeration", but via, via (maybe that's the problem?) Similar situation in Codesys 2.3 this worked correctly. Now the BOOL is not found in the ENUM. GVL.g_IPC2AMK.dwDO.DO_AMK_REMOTE_ACTIVE GVL = Global Variabel List g_IPC2AMK = STRUCT dwDO = ENUM DO_AMK_REMOTE_ACTIVE = BOOL
Last updated: 2024-02-06

CODESYS V35SP12 does not save data setting with rapsberry after reboot CODESYS Forge talk (Thread)
CODESYS V35SP12 does not save data setting with rapsberry after reboot
Last updated: 2018-04-17

2D array , data move from a column to another column CODESYS Forge talk (Thread)
2D array , data move from a column to another column
Last updated: 2011-03-23

Which kinds of data is transferred with 'Scan for devices' command? CODESYS Forge talk (Thread)
Which kinds of data is transferred with 'Scan for devices' command?
Last updated: 2020-12-14

Content update through Data URI on Web Brower on Visualization Toolbox CODESYS Forge talk (Thread)
Content update through Data URI on Web Brower on Visualization Toolbox
Last updated: 2024-07-30

Check Connection Status of the OPC-UA Server for Data Source Manager with OPC-UA Client CODESYS Forge talk (Thread)
Check Connection Status of the OPC-UA Server for Data Source Manager with OPC-UA Client
Last updated: 2024-09-07

RPI Serial port connects with no errors but not data being transmitted or received CODESYS Forge talk (Thread)
RPI Serial port connects with no errors but not data being transmitted or received
Last updated: 2024-09-30

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: 2025-06-16

"Out of global data memory". Is there a way to increase the memory? CODESYS Forge talk (Thread)
"Out of global data memory". Is there a way to increase the memory?
Last updated: 2022-03-28

store trend data in the PLC - How to use it (Codeys 2.3.9.7) CODESYS Forge talk (Thread)
store trend data in the PLC - How to use it (Codeys 2.3.9.7)
Last updated: 2022-04-07

[SOLVED][ModBus TCP/IP] How to read data from thermostat. CODESYS Forge talk (Thread)
[SOLVED][ModBus TCP/IP] How to read data from thermostat.
Last updated: 2017-06-08

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

3.5.17: Setting up OPCUA Client data source to another PLC OPCUA server CODESYS Forge talk (Thread)
3.5.17: Setting up OPCUA Client data source to another PLC OPCUA server
Last updated: 2021-11-02

i need to do a data logging with 750-842 CODESYS Forge talk (Thread)
i need to do a data logging with 750-842
Last updated: 2013-08-26

How to read SD card data and store in array CODESYS Forge talk (Thread)
How to read SD card data and store in array
Last updated: 2012-11-26

exporting or copying the COE online data from an ethercat slave device CODESYS Forge talk (Thread)
exporting or copying the COE online data from an ethercat slave device
Last updated: 2019-10-30

PM564 ETH for reading data from modbus serial slave using COM1 port CODESYS Forge talk (Thread)
PM564 ETH for reading data from modbus serial slave using COM1 port
Last updated: 2017-11-28

Save the data log file in the USB from the visualization CODESYS Forge talk (Thread)
Save the data log file in the USB from the visualization
Last updated: 2021-01-25

Send Data to a specified Register with TCP/IP Cleint Server CODESYS Forge talk (Thread)
Send Data to a specified Register with TCP/IP Cleint Server
Last updated: 2021-08-25

Can't link process data variables to IO from a positionsensor while using a demo soft PLC CODESYS Forge talk (Thread)
Can't link process data variables to IO from a positionsensor while using a demo soft PLC
Last updated: 2022-03-04

can I send data over udp/tcp in simulation mode? CODESYS Forge talk (Thread)
can I send data over udp/tcp in simulation mode?
Last updated: 2016-06-05

Profinet Master on RPI3 with CodeSys Control - No live data on I/O CODESYS Forge talk (Thread)
Profinet Master on RPI3 with CodeSys Control - No live data on I/O
Last updated: 2017-07-06

<< < 1 .. 14 15 16 17 18 .. 37 > >> (Page 16 of 37)

Showing results of 914

Sort by relevance or date