Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ST creation problem #108

Open
fehimiltek opened this issue Mar 22, 2024 · 2 comments
Open

ST creation problem #108

fehimiltek opened this issue Mar 22, 2024 · 2 comments

Comments

@fehimiltek
Copy link

fehimiltek commented Mar 22, 2024

hello I just realised that when i connect my output to a parameter on st file its appears to top of program let me show

ladder
st

I think "Q1MODE := CNC_Mode0.Mode_Num;" line should be at the end

regards

@thiagoralves
Copy link
Owner

It is hard to make sense of these screenshots. They are cropped, only small portions of the code and diagram are shown.

@fehimiltek
Copy link
Author

fehimiltek commented Mar 23, 2024

let me explain with another clear example
ladder
st

i think it should be like

`PROGRAM program0
VAR
adding0 : adding;
LocalVar0 : BOOL;
LocalVar1 : BOOL;
END_VAR
VAR
LocalVar2 AT %MB1000 : BYTE;
END_VAR

LocalVar1 := LocalVar0;
adding0(EN := LocalVar1, LocalVar0 := 10, LocalVar1 := 10);

IF adding0.ENO THEN
LocalVar2 := adding0.LocalVar2;
END_IF;
END_PROGRAM`

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants