Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual

Page 4

Advertising
background image

Contents

4

Lenze · ApplicationTemplate · 1.3 EN - 04/2013

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

11

The L_EATP_ApplicationTemplate library _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

110

11.1 Automatically generated functions _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

111

11.1.1 GetBooleanProperty (automatically generated by »PLC Designer«) _ _ _ _ _ _ _ _ _ _ _ _

111

11.1.2 GetCompany (automatically generated by »PLC Designer«) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

112

11.1.3 GetNumberProperty (automatically generated by »PLC Designer«) _ _ _ _ _ _ _ _ _ _ _ _

112

11.1.4 GetTextProperty (automatically generated by »PLC Designer«) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

113

11.1.5 GetTitle (automatically generated by »PLC Designer«) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

113

11.1.6 GetVersion (automatically generated by »PLC Designer«) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

114

11.1.7 GetVersionProperty (automatically generated by »PLC Designer«) _ _ _ _ _ _ _ _ _ _ _ _ _

114

11.2 1_POUs - Program Organization Units _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

115

11.2.1 L_EATP_Application _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

115

11.2.2 L_EATP_CriticalSection _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

117

11.2.3 L_EATP_ErrorListHandler _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

118

11.2.4 L_EATP_ErrorSet _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

119

11.2.4.1

Adapting the error handling system _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

120

11.2.4.2

Acknowledging errors _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

120

11.2.5 L_EATP_Module _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

121

11.2.5.1

Base() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

121

11.2.6 RegisterACD() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

122

11.2.7 setCompIDAndVersion() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

122

11.2.8 L_EATP_ModuleDiag _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

123

11.2.9 L_EATP_ModuleErrorHandler _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

124

11.2.10 L_EATP_ModulRelations _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

125

11.2.11 L_EATP_SMAccess _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

126

11.3 2_Structs_Types _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

127

11.3.1 L_EATP_ACD_Base _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

127

11.3.2 L_EATP_BaseChannel _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

128

11.3.3 L_EATP_ErrorList _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

128

11.3.4 L_EATP_ErrorListEntry _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

128

11.3.5 L_EATP_MM_Address _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

129

11.3.6 L_EATP_MVis _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

129

11.3.7 L_EATP_scBase _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

129

11.4 3_Enums _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

129

11.4.1 L_EATP_ErrorReactionType _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

129

11.4.2 L_EATP_SMStates _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

130

12

Appendix _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

131

12.1 Method overview - ApplicationTemplate _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

131

12.1.1 Accessing the state machine - the methods of the BaseChannel _ _ _ _ _ _ _ _ _ _ _ _ _ _

131

12.1.2 Inhibiting/enabling module-specific state transitions _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

133

12.1.3 Activate / deactivate quick stop response of the state machine _ _ _ _ _ _ _ _ _ _ _ _ _ _

133

12.1.4 Activating/deactivating default coupling _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

134

12.2 The sample program in the ApplicationTemplateCounter _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

134

12.2.1 Sample programs in the machine module MM_Module1/MM_Module2 _ _ _ _ _ _ _ _ _

135

12.2.1.1

"Automatic" status _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

136

12.2.1.2

"Mode1" status _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

136

12.2.1.3

"Mode2" status _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

136

12.2.1.4

"Service" status _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

137

12.2.1.5

"Fault"/"System fault" status _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

137

12.2.2 Sample program MM_Machine machine module _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

138

12.3 Tips&tricks _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

139

12.3.1 Renaming a machine module _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

139

12.3.2 Next steps: Renaming the visualization buttons _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

140

Advertising