I have been struggling to transmit multiple messages to a serial printer with S7-200. I seem to have overcome this with the attached program, but would appreciate it if anybody vould cast an eye over it and tell me what they think of it, or if they can recommend a better way.
Also I don't know if I have used the local variables correctly...?
And lastly, in the subroutine I transmit tables VB100, VB200 etc... Is there anyway I can pass these addresses into the subroutine via the local variable table? So I could use the same subroutine to transmit a completely different set of tables.
Thanks in advance.
Also I don't know if I have used the local variables correctly...?
And lastly, in the subroutine I transmit tables VB100, VB200 etc... Is there anyway I can pass these addresses into the subroutine via the local variable table? So I could use the same subroutine to transmit a completely different set of tables.
Thanks in advance.