20 # |
20 # |
21 # You should have received a copy of the GNU General Public License |
21 # You should have received a copy of the GNU General Public License |
22 # along with this program; if not, write to the Free Software |
22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 |
24 |
|
25 |
|
26 from types import * |
|
27 import re |
25 from plcopen import PLCOpenParser |
28 from plcopen import PLCOpenParser |
26 from plcopen.structures import * |
29 from plcopen.structures import * |
27 from types import * |
30 |
28 import re |
|
29 |
31 |
30 # Dictionary associating PLCOpen variable categories to the corresponding |
32 # Dictionary associating PLCOpen variable categories to the corresponding |
31 # IEC 61131-3 variable categories |
33 # IEC 61131-3 variable categories |
32 varTypeNames = {"localVars": "VAR", "tempVars": "VAR_TEMP", "inputVars": "VAR_INPUT", |
34 varTypeNames = {"localVars": "VAR", "tempVars": "VAR_TEMP", "inputVars": "VAR_INPUT", |
33 "outputVars": "VAR_OUTPUT", "inOutVars": "VAR_IN_OUT", "externalVars": "VAR_EXTERNAL", |
35 "outputVars": "VAR_OUTPUT", "inOutVars": "VAR_IN_OUT", "externalVars": "VAR_EXTERNAL", |