Dear Team,
Thanks for your effort for creating rusty compiler. In a Ubuntu 24.04 machine I have build the rusty compiler, and able to compile .st code targeted for OpenPLC. Now is it possible compile .scl code targeted for Siemens PLC ?
openplc target .st code
PROGRAM start_stop
VAR
start AT %IX100.0 : BOOL;
stop AT %IX100.1 : BOOL;
LED AT %QX100.0 : BOOL;
END_VAR
LED := stop AND (LED OR start);
END_PROGRAM
Siemens target .scl code
FUNCTION_BLOCK "test_siemens"
VAR
PB : BOOL;
LED : BOOL;
END_VAR
BEGIN
#LED := #PB;
END_FUNCTION_BLOCK
Dear Team,
Thanks for your effort for creating rusty compiler. In a Ubuntu 24.04 machine I have build the rusty compiler, and able to compile .st code targeted for OpenPLC. Now is it possible compile .scl code targeted for Siemens PLC ?
openplc target .st code
PROGRAM start_stop
VAR
start AT %IX100.0 : BOOL;
stop AT %IX100.1 : BOOL;
LED AT %QX100.0 : BOOL;
END_VAR
LED := stop AND (LED OR start);
END_PROGRAM
Siemens target .scl code
FUNCTION_BLOCK "test_siemens"
VAR
PB : BOOL;
LED : BOOL;
END_VAR
BEGIN
#LED := #PB;
END_FUNCTION_BLOCK