They've been mentioned. When you get down to the UC FB level and manipulating AR2, basically anything is possible. Let your imagination run wild.
Yes, but again the code I was writing for the Ethernet had to be something that any LAD programmer can use.
Is #CallThisBlock an INT? Is it a temp variable?
I used the name of a FB. I doubted that would work because calling a FB can be done directly. I didn't try using an int. I will try that.
I don't think it will work as an input parameter, and would have to be passed to a temp variable as an INT. This is another reason that I don't use parameters as a rule- if there is enough information to know what to type for a parameter, there is enough information to know how to calculate it. It comes down to proper code design.
Part of the problem is that the documentation doesn't provide examples for all the ways UC can be used and what the parameters can be. You sound like me now complaining about not enough information but I agree with you on this point.
The advantage of using parameters is that the person that uses the FC or FB can see what is required but I can see why you feel this way. It is crazy that an ANY pointer can't be loaded from the VAR_IN but can be from the VAR_TEMP. If you don't use VAR_IN then you don't have this problem.
Does it have to be USB? That is just so 90s. I use the Softing Ethernet-MPI adapter, and will never look back. Kind of nice being able to go online through a wireless hub via MPI.
I will look into that. It doesn't need to be USB. If it cost about the same I will get it. The Siemens MPI-USB adapter that I use now will talk to the new PLCs at 1.5 Mbs. Can the Softing Etherent/USB adapter do that?
I installed Step7Lite at home last night. I am waiting for the last of the S7 to come back from the test labs. I can preconfigure the profibus controller to talk to one of our controllers. Our controller can then log everything that is sent over the PLC like a real time trace. The controller will also let me simulate what ever I want. I am just limited to 8 32 bit registers in and out. That is the limit that the old S7 could send in one Profibus DP packet with data consistency. That is still pretty good. 32 bits and 7 DWORDs, DINTs or REALs that can be logged every 0.5 milliseconds which is faster than the Profibus DP can update.
I got the CP5512 running with the Step7Lite. It seems slow compared to the USB-MPI. I don't know if it is the CP5512, the old S7 316-2 DP or the Step7Lite.