Skip to content

compilation of .scl code from Siemens #1591

@RajatDas2020

Description

@RajatDas2020

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions