CTH200 Series PLC User Manual
Example
CALL ExBoard_WriteAq, 0, VW1360, MB15
CALL Exboard_ReadAi, 0, MB16, VW1362
CALL Exboard_ReadAi, 1, MB17, VW1364
// enable the board to program
// call the ExBoard_WriteAq, write the AQ of
Ch 0, store the status value into MB15
// call the Exboard_ReadAi, read the Ai of Ch
0, store the status value into MB16
// call the Exboard_ReadAi, read the Ai of Ch
1, store the status value into MB17
6.5 Recipe and Data Log
6.5.1 Recipe
MagicWorks PLC software as well as CPU H224X, H226XL and H228XL support recipe.
MagicWorks PLC provides the Recipe Wizard to help you organize define recipes.
All recipes are stored in the memory card instead of the PLC. Therefore, to use the recipe feature,
it is a must to insert an optional 64kB or 256kB memory card to the PLC.
A recipe, however, will be read into PLC memory when the user program is dealing with it. There
may be, for example, chocolate chip, sugar, and oatmeal for cookies recipes. But only one type
of cookies can be made at a time, thus you must select proper recipe to read into PLC memory.
Figure 6-16 illustrates a process for making multiple types of cookies using recipes. Each recipe
for cookie is stored in the memory card. The operator selects which type of cookie to make on
TP10 text display, and the user program reads that recipe into memory.