You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monaco-editor/website/index/samples/sample.st.txt

14 lines
343 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

FUNCTION_BLOCK SubFB
VAR_INPUT
TimeIN : BOOL; (* Boolean input variable *)
TimeQ : BOOL; (* Boolean input variable *)
END_VAR
VAR_IN_OUT
Timer : TON; (* pointer to instance Time1 of TON input/output variable *)
END_VAR
VAR_OUTPUT
Time3 : TON; (* 3rd instance of TON *)
END_VAR
VAR
Start : BOOL := TRUE; (* local Boolean variable *)
END_VAR