DUEMMEGI
MCP 4 – User's manual
Contatto
4- PROGRAM WRITING
The program writing is the first step of the MCP 4 controller. The equations, SCRIPTs, and all concerning the
operating program, must be written according to the related syntax as described in the previous paragraphs.
To write a program for MCP 4, the software package
MCP IDE
(Integrated Design Environment) has to be
used; this package is provided free of charge by
DUEMMEGI
together to MCP 4 module. This program must
be installed on a Personal Computer with the following minimum characteristics:
-
operative system WINDOWS
XP, 7 or 8
-
processor with 1000MHz clock minimum
-
512M RAM memory
-
HD with 50MB free space
-
Video with graphic resolution 1024x768 pixel minimum
-
mouse
MCP IDE, in addition to the program writing support, allows all operation related to the setting up an to the
maintenance.
For more details on the using of this program, refer to the related documentation.
Essentially, MCP IDE software tool includes:
a te4 editor to write the program, the SCRIPT, the configuration, MACRO, etc.
a compiler to allow the translation of an ASCII file, containing the operating information, in a binary file
adequate to be transferred in the non volatile memory (FLASH type) of MCP 4 module
an section to transfer the program from the PC to MCP 4 (or vice-versa)
MCP VISIO, that is a graphical utility to display the status of the plant (input and output modules,
counters, virtual points, registers, etc.)
a simulator to verify the written program, or a part of it, before to transfer it into MCP 4 memory
The file containing the program is in ASCII format and must have the
.EQU
(or
.EXT
) extension; for instance:
filename
.EQU
where
filename
is the name of the program file and may be any name allowed by the WINDOWS
syntax.
The
.EQU
extension is mandatory because the following steps of MCP 4 programming (compiling and
transferring) require that the source file have that extension.
MCP 4 controller programming takes place in a 3 sequential steps, through the MCP IDE support:
building (or editing) of the
filename
.EQU file, containing the operating program in readable format (ASCII)
compiling of
filename
.EQU, that is the conversion of the ASCII file in the related
filename
.BIN written in a
format ready to be transferred into MCP 4 memory
uploading of
filename
.BIN into MCP 4 memory
If some syntax errors are detected during the step 2, these ones will be reported by the compiler, together to
some information about the error type and the line number where the error occurs.
4.1- Rule for program writing
The program must be written according to the syntax described in its relevant paragraph (logic, counter,
timer, etc. ...). To write and compile a program, it is not necessary to connect MCP 4 controller to PC.
DUEMMEGI
s.r.l. - Via Longhena, 4 – 20139 MILANO
Tel. 02/57300377 - Fax 02/55213686 –
www.duemmegi.it
Rel.: 1.2 October 2018
Page 45 of 87