The Schneider/Modicon Concept programming language was designed to be capable of this. Back in the late 90s, at a Concept programming course, the instructor alledged that they had recently completed programming an Allen Bradely PLC using Concept. I didn't hear anything more about that feat since, so maybe it didn't work very well, or maybe the effort required was far in excess of the cost of some AB software, or maybe Schneider just don't get many projects programming ABs.
Even IEC 61131 is too loose a standard to do this type of thing easily with different complient programming packages.