Converts a boolean (BOOL) value into "TRUE" or "FALSE" and writes the result to the target STRING variable.
BOOL_TO_STRING evaluates the boolean operand src (IN) and writes "TRUE" or "FALSE" to the target STRING variable for diagnostic logging or HMI status text.
STRING variable and the source BOOL operand (IN).from automation_machine import ActionQualifier, ActionInstruction
step.add_action("safety_status_str", "Format safety state as text", qualifier=ActionQualifier.P, instruction=ActionInstruction.BOOL_TO_STRING, src="safety_ok")
STRING variableActionQualifier.P (Pulse)ActionInstruction.BOOL_TO_STRINGIN) — Source BOOL variable or literal