Coding parts of a 61131-3 source Program in an external language: one that 61131 does not define

1 day ago 1
ARTICLE AD BOX

I'm looking for a sample of an IEC 61131 PLC source program that explicitly contains routines in a 'foreign' textual language. 'Foreign' here means a language whose definition is not part of 61131.

The IEC 61131-3:2013 standard, clause 4.3, says 'A programming language other than one of those defined in this standard may be used for programming of a function, function block type and methods.' (Bolding added.)

So I'm looking for

A single continuous string of text lines, where….

the first line is PROGRAM and the last line is END_PROGRAM, and….

the intervening lines include source text for at last one function and for at last one function block type, written in an external language such as perhaps C, C++, or Python; and finally

all other code conforms to the 61131-3 specifications from 6. Common Elements, 7. Textual Languages (omitting the deprecated 7.2 Instruction List), and the corresponding syntactical definitions in Annex A.

For added certainty: the #3 function(s) and FBtype(s) are not in external libraries. Rather, the full source of each routine is contained in the body of this one single continuous PROGRAM text.

Thanks!

Read Entire Article