Difference between revisions of "Component: Event Log (Runtime Tools)"

From Flowcode Help
Jump to navigationJump to search
Line 15: Line 15:
 
A simulation component designed to create a simple log record of events in your SCADA system. Logs to a file and / or to a console tab including optional automated time stamp.
 
A simulation component designed to create a simple log record of events in your SCADA system. Logs to a file and / or to a console tab including optional automated time stamp.
  
==Component Pack==
+
==Component Source Code==
  
SCADA
+
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_EventLog.fcfx FC_Comp_Source_EventLog.fcfx]
  
 
==Detailed description==
 
==Detailed description==
 +
 +
  
  
Line 32: Line 34:
  
 
==Examples==
 
==Examples==
 +
 +
  
  
Line 89: Line 93:
 
|-
 
|-
 
| colspan="2" | Controls if a timestamp is appended to the start of the log string. Yes: Add timestamp to log string No: Leave log string as is 
 
| colspan="2" | Controls if a timestamp is appended to the start of the log string. Yes: Add timestamp to log string No: Leave log string as is 
 +
|-
 +
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 +
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Console Properties
 +
|-
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-10-icon.png]]
 
| width="10%" align="center" | [[File:Fc9-type-10-icon.png]]
Line 99: Line 107:
 
|-
 
|-
 
| colspan="2" | Selects if the contents of the console are maintained or wiped on runtime start. Yes: Console is automatically cleared No: Console is maintained and appended 
 
| colspan="2" | Selects if the contents of the console are maintained or wiped on runtime start. Yes: Console is automatically cleared No: Console is maintained and appended 
 +
|-
 +
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 +
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | File Properties
 +
|-
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-13-icon.png]]
 
| width="10%" align="center" | [[File:Fc9-type-13-icon.png]]
Line 109: Line 121:
 
|-
 
|-
 
| colspan="2" | Selects if the contents of the log file are maintained or wiped on runtime start. Yes: Log file is automatically cleared No: Log file is maintained and appended 
 
| colspan="2" | Selects if the contents of the log file are maintained or wiped on runtime start. Yes: Log file is automatically cleared No: Log file is maintained and appended 
 +
|-
 +
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 +
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Timestamp Properties
 +
|-
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
Line 119: Line 135:
 
|-
 
|-
 
| colspan="2" | Specifies the format of the date string.  No - "DD/MM/YY"  Yes - "MM/DD/YY"  
 
| colspan="2" | Specifies the format of the date string.  No - "DD/MM/YY"  Yes - "MM/DD/YY"  
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
 
|-
 
 
|}
 
|}

Revision as of 17:46, 9 November 2022

Author Matrix TSL
Version 1.0
Category Runtime Tools


Event Log component

A simulation component designed to create a simple log record of events in your SCADA system. Logs to a file and / or to a console tab including optional automated time stamp.

Component Source Code

Please click here for the component source code: FC_Comp_Source_EventLog.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

Fc9-comp-macro.png LogEvent
Allows an event string to be logged 
Fc9-string-icon.png - STRING LogString
 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-7-icon.png Log To Console
 
Fc9-type-7-icon.png Log To File
 
Fc9-type-7-icon.png Include Timestamp
Controls if a timestamp is appended to the start of the log string. Yes: Add timestamp to log string No: Leave log string as is 
Fc9-conn-icon.png Console Properties
Fc9-type-10-icon.png Console Name
 
Fc9-type-7-icon.png Clear On Init
Selects if the contents of the console are maintained or wiped on runtime start. Yes: Console is automatically cleared No: Console is maintained and appended 
Fc9-conn-icon.png File Properties
Fc9-type-13-icon.png Log File
File to store the log data. Default: $(srcdir)log.txt $(srcdir) specifies the directory containing your Flowcode project file. log.txt specifies a file named log.txt If the file does not exist then it will be automatically created for you. 
Fc9-type-7-icon.png Clear On Init
Selects if the contents of the log file are maintained or wiped on runtime start. Yes: Log file is automatically cleared No: Log file is maintained and appended 
Fc9-conn-icon.png Timestamp Properties
Fc9-type-16-icon.png TimeStamp
 
Fc9-type-7-icon.png US Date Format
Specifies the format of the date string. No - "DD/MM/YY" Yes - "MM/DD/YY"