Download Contatto MCP XT
Transcript
Contatto MCP XT – User's manual DUEMMEGI INDEX A1- CHANGES MADE TO THIS MANUAL IN RESPECT TO THE PREVIOUS RELEASE..............................4 A2- RECOMMENDATIONS.............................................................................................................................4 1- MAIN FEATURES.........................................................................................................................................5 1.1- Required Hardware and Software tools................................................................................................5 1.2- Main features of MCP XT.....................................................................................................................5 1.3- Terminology and syntax........................................................................................................................5 2- EQUATIONS: TYPES AND SYNTAX...........................................................................................................6 2.1- Equations for the system configuration.................................................................................................6 2.1.1- Configuration of the modules...................................................................................................6 2.1.2- Power ON status.....................................................................................................................6 2.1.3- Status of fault input modules...................................................................................................6 2.1.4- Communication Protocol..........................................................................................................7 2.1.5- Address of MCP XT.................................................................................................................7 2.1.6- Identifier of MCP XT................................................................................................................7 2.1.7- Directive for the calculation of sunrise, sunset and sun position..............................................7 2.1.8- Publishing on the bus the status of virtual points and value of registers..................................8 2.1.9- Management of fault modules.................................................................................................9 2.1.10- Alignment of the outputs........................................................................................................9 2.1.11- Data exchange between MCP XT controllers........................................................................9 2.1.12- Number of nodes in a MCP XT network..............................................................................12 2.2- Event triggered Equations...................................................................................................................12 2.2.1- Logic equations......................................................................................................................12 2.2.2- SET – RESET equations.......................................................................................................12 2.2.3- TOGGLE equations...............................................................................................................13 2.2.4- COUNTER Equations............................................................................................................14 2.2.5- THRESHOLD Equations........................................................................................................15 2.2.6- TIMER Equations...................................................................................................................16 2.2.7- Equations for mathematical and logic calculation..................................................................17 2.2.8- Equations for binary code generation....................................................................................17 2.2.9- Equations for recording status changes (EVENT).................................................................18 2.2.10- Equations for recording value changes (LOG).....................................................................19 2.2.11- Management of the external counter modules (ModCNT)...................................................20 2.3- Time triggered Equations....................................................................................................................20 2.3.1- Scheduler Equations..............................................................................................................20 2.4- Macro..................................................................................................................................................22 3- SCRIPT......................................................................................................................................................24 3.1- Summary............................................................................................................................................24 3.2- Keywords and syntax..........................................................................................................................25 3.2.1- Using the TRIGGER..............................................................................................................25 3.2.2- VAR, GLOBAL VAR and EXTERN VAR................................................................................26 3.2.3- Logic and Mathematical operations.......................................................................................26 3.2.4- IF…THEN…ELSE…ENDIF...................................................................................................27 3.2.5- CARRY and ZERO................................................................................................................28 3.2.6- DEFINE.................................................................................................................................28 3.2.7- GOTO....................................................................................................................................30 3.2.8- SUBROUTINES and FUNCTIONS........................................................................................30 3.2.9- BIT(x).....................................................................................................................................33 3.2.10- WORD(x) and pointers........................................................................................................35 3.2.11- @RAM k and @WORD k....................................................................................................36 Page 2 of 78 Rel.: 2.1 September 2011 DUEMMEGI s.r.l. - Via Longhena, 4 – 20139 MILANO Tel. 02/57300377 - Fax 02/55213686 – www.duemmegi.it