How do you incorporate prepared PLC data types in the user program in order to control the Technology module "ET 200SP TM Count 1x24V" via the control and checkback interface?
The prepared PLC data types are available for downloading as a block library.
- In STEP 7 (TIA Portal) you create a project and configure a station with ET 200SP CPU and ET 200SP Technology Module TM Count 1x24V.
In the "Libraries" task card you open the "Global libraries" palette. Click the "Open global library" button to open the block library "6ES71386AA000AB0".
- In the block library "6ES71386AA000AB0" under "Master copies" you find the prepared PLC data types. Use drag-and-drop in the project navigation to add the prepared PLC data types to the PLC data types folder located in the device folder of the ET 200SP CPU.
The PLC data types semantically describe the inputs and outputs of the module.
- Compile your project.
- Create two tags in a tag table. Select the prepared PLC data types as data type. Assign to the tags the configured input and output address of the Technology module "ET 200SP TM Count 1x24V".
- Now, you can use the two PLC tags in your program to address the inputs and outputs.
The download "109475835_TM_Count_Library.zip" includes the block library "6ES71386AA000AB0".
Copy the "109475835_TM_Count_Library.zip" file into a separate directory, unpack it and then you can open and process the block library "6ES71386AA000AB0" in STEP 7.
109475835_TM_Count_Library.zip (1,0 MB)
More information is available in the following manuals:
Manual "SIMATIC ET 200SP TM Count 1x24V"
Manual "SIMATIC S7-1500, ET 200MP, ET 200SP Counting, Measurement and Position Detection"