I'm running an actual processor - a 1756-L62
It's not the first time I've come across execution differences between hardware and the emulator, and because of that I would never recommend the use of the emulator to prove a project.
The "worst" I stumbled upon was that JSR parameters are passed, stacked, handled, or whatever you want to call it in the opposite order !
Our "standard" plant item or device handlers had a UDT for the device itself, and we passed that into the handling subroutine first, then we would pass the plant item feedback signals from the I/O into the relevant UDT members for processing. (This was, of course, pre-AOI days).
Passing the parameters in that order was perfect in an actual processor, but not in the emulator, the net result of the way they passed parameters to subroutines was that the data already in the UDT would override the I/O data passed "later".
When I complained about this mishandling of JSR parameters to RA, I got the response along the lines of "...The Emulator is a cut-down version of SoftLogix, and the developers of that were not given a specification to work to...." - I thought that was a lame excuse for a huge blunder.
It's not the first time I've come across execution differences between hardware and the emulator, and because of that I would never recommend the use of the emulator to prove a project.
The "worst" I stumbled upon was that JSR parameters are passed, stacked, handled, or whatever you want to call it in the opposite order !
Our "standard" plant item or device handlers had a UDT for the device itself, and we passed that into the handling subroutine first, then we would pass the plant item feedback signals from the I/O into the relevant UDT members for processing. (This was, of course, pre-AOI days).
Passing the parameters in that order was perfect in an actual processor, but not in the emulator, the net result of the way they passed parameters to subroutines was that the data already in the UDT would override the I/O data passed "later".
When I complained about this mishandling of JSR parameters to RA, I got the response along the lines of "...The Emulator is a cut-down version of SoftLogix, and the developers of that were not given a specification to work to...." - I thought that was a lame excuse for a huge blunder.
Last edited: