Peter Nachtwey
Member
I can't close Step7 and shut down my PC beause Step 7 will not let me save a program with an error.
I am trying to pass an ANY value to the SEND parameter of an AG_LSEND and the RECV parameter of a AG_LRECV. I have a pSendData and pRecvData declared as ANY but I can't pass an ANY value to an ANY parameter no matter how many # I put in front of pSendData or pRecvData. Go figure.
Right now I have only FC50 and FC60 in a function block FB10. pSendData and pRecvData are parameters in the IN area of FB10.
HAVE I TOLD YOU GUYS HOW MUCH I HATE Step 7 RECENTLY?
Also there is an ID field and is seems I can't use a parameter for that field. It must be hard coded.
The examples only show hard coded addresses. I will have to find my Berger books.
I have got a new S7 315-2 PN/DP and I am writing an FB that will make it easier to communicate with our controller. At least I am programming over Ethernet instead of MPI.
I am trying to pass an ANY value to the SEND parameter of an AG_LSEND and the RECV parameter of a AG_LRECV. I have a pSendData and pRecvData declared as ANY but I can't pass an ANY value to an ANY parameter no matter how many # I put in front of pSendData or pRecvData. Go figure.
Right now I have only FC50 and FC60 in a function block FB10. pSendData and pRecvData are parameters in the IN area of FB10.
HAVE I TOLD YOU GUYS HOW MUCH I HATE Step 7 RECENTLY?
Also there is an ID field and is seems I can't use a parameter for that field. It must be hard coded.
The examples only show hard coded addresses. I will have to find my Berger books.
I have got a new S7 315-2 PN/DP and I am writing an FB that will make it easier to communicate with our controller. At least I am programming over Ethernet instead of MPI.