You now have to install extensions points in all mechatronic components in which EPLAN Electric P8 components have already been installed fixed.
This affects the following mechatronic components:
- Feeder,
- Positionsensor_Inductive,
- Pressuresensor,
- Positionsensor_optical.
Creating an extension point for the schematic:
- Open the Feeder component.
- Delete the installed components WiringDiagram_Feeder, PLC-Sensors_1_8 and PLC_Sensors_9_16.
- Click to open the Finder dialog.
- Mark the Placeholder.
- Confirm with [Finish].
- Change the name from Placeholder to WiringDiagram.
- Click [...] in the Type field to open the type finder.
- Enter the character I in the Name field.
- Click [Search].
- Select the IWiringDiagram interface.
- Confirm with [OK].
- Enter the value 0..1 in the Number field.
- In the Selection formula field, enter the value =1.
- Mark the Extension point check box.
- Save the component.
In the future a component that implements the IWiringDiagram interface is installed on the extension point. The quantity is limited to the value 1 and the selection formula only allows a single component.
Creating an extension point for schematic pages whose quantity is calculated:
The number of installed sensors is evaluated for the extension point on which the schematic pages are to be installed. To simplify the formula for the evaluation a parameter is required that saves the number of installed sensors.
Creating the Sensors parameter:
- Mark the Parameter unit in the T_Mechatronic_ModularSystem library.
- Select New > Parameter in the shortcut menu.
- Specify the Sensors name.
- Specify the Collection type.
- Save the parameter.
Inserting the Sensors parameter in Feeder:
- Open the Feeder component.
- Switch to the Parameter editor page.
- Drag the Sensors parameter from the Parameter unit into the editor page.
- Enter the following formula as the value:
=rmos('IMechSensor')
- Save the Feeder component.
Creating the extension point for schematic pages:
- Repeat Steps 2 to 10 of the previous extension point creation, in the process rename the placeholder to SchematicPages and mark the ISchematicPage interface.
- Leave the asterisk in the Number field.
- Enter the following formula as the value in the Selection formula field:
=if (mroot.$Sensors.size.mod(8) > 0) then (mroot.$Sensors.size / 8 + 1) else (mroot.$Sensors.size / 8) endif
- Mark the Extension point check box.
- Save the component.
Note on the number and selection formula:
The value in the number field specifies the overall number of insertable components. The number of components of an insertable type is specified in the selection formula field. Here the overall number is not restricted. The number of insertable components (schematic pages) is calculated. On one page 8 sensors can be placed. Therefore the overall number modulo 8 is calculated. If a rest remains, the sensors have to be placed on an additional page, so that a 1 has to be added to the result.
Creating extension points for sensors
- Open the Positionsensor_inductive component.
- Delete the installed Sensor_Inductive component.
- Save the component Positionsensor_inductive.
- Click to open the Finder dialog.
- Mark the Placeholder.
- Confirm with [Finish].
- Change the name from Placeholder to Sensor_inductive.
- Click [...] in the Type field to open the type finder.
- Enter the character I in the Name field.
- Click [Search].
- Select the ISensorInductive interface.
- Confirm with [OK].
- Enter the value 0..1 in the Number field.
- In the Target project field, enter the value 1.
- Mark the Extension point check box.
- Save the component.
- Repeat Steps 1 to 16 with the Positionsensor_optical component, in the process rename the placeholder to Sensor_optical and mark the ISensorOptical interface.
- Repeat Steps 1 to 16 with the Pressuresensor component, in the process rename the placeholder to Sensor_Pressure and mark the ISensorPressure interface.
Through the transition to extension points, the parameters of the sensors are applied to encapsulating mechatronic components and are not part of the T_Mechatronic_ModularSystem anymore.
The parameters have to be removed in the abstract Positionsensor sensor.
- Open the component Positionsensor.
- Switch to the Parameter editor page.
- Mark all parameters.
- Click to delete the parameter.
- Save the component.
The number of pages in the projects orientates itself towards the number of sensors that implement the IMechSensor interface.
Implementing IMechSensor in the sensors interface:
- Open the Positionsensor_inductive component.
- Switch to the Interfaces editor page.
- Click to open the Finder dialog.
- Click [Search].
- Mark the IMechSensor.
- Confirm with [Finish].
- Save the component.
- Repeat Steps 1 to 7 for the Positionsensor_optical and Pressuresensor components.