Raalen Posted February 13, 2020 Report Posted February 13, 2020 I am new to PLC programming and I am trying to figure out how to go from one sequence to another using Structured Text with GX works 2. Quote
Gambit Posted February 14, 2020 Report Posted February 14, 2020 What do you mean ??? it's running top to bottom. Do you mean you have created multiple programs ? 2 Quote
Raalen Posted February 14, 2020 Author Report Posted February 14, 2020 yes I am working on code that I didn't create and I am trying to add a new sequence(program) to the already existing programs Quote
panic mode Posted February 14, 2020 Report Posted February 14, 2020 you still did not describe problem. what is preventing you from doing that? each block of instructions is executed top to bottom (begin to end). sequences are just connecting end of one block with begin of next one. 1 Quote
Raalen Posted February 14, 2020 Author Report Posted February 14, 2020 Ok so the code is using EnableRel.DC[myDC] to go from one sequence to the other with RequestRel.DC[myDC] := FALSE then later in the code when it is being used := TRUE so essentially what I am asking is what does the Enable and Request do in the code? Quote
panic mode Posted February 16, 2020 Report Posted February 16, 2020 no clue.... whatever original programmer intended them to do. 1 Quote
Raalen Posted February 26, 2020 Author Report Posted February 26, 2020 Using Structured text the code has 2 main sequences which are labeled mySeq := 6; and mySeq := 3; I am trying to add a sequence in between for example mySeq := 4; The problem is, it does not recognize it after i rebuild it. Could this be due to a handshaking error between the sequences? Quote
Raalen Posted February 27, 2020 Author Report Posted February 27, 2020 No worries, I figured it out. Quote
pcmccartney1 Posted February 27, 2020 Report Posted February 27, 2020 Ok, what did you figure out? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.