SAP Digital Manufacturing enables data exchange between automation and DM via PCo. By using the Design Production Processes and Manage Automatic Triggers applications, we can automatically start and finish SFCs for orders with the help of sensors for machines that do not have RFID technology. We can view these processes instantly on the POD.
Before delving into the details of the design we created, let’s first explain the scenario we went through:
We have a machine (resource) called WC_DISC1 on the shop floor that operates on a FIFO logic. To select the order for production, we use the worklist on the POD. By clicking the start button, the system automatically triggers a design that writes the order number to the specified tag address.
Now, the machine knows which order it is processing. In our scenario, we assumed there are 2 sensors on the machine operating through a single tag address, with a distance of x meters between them. When a product passes through the first sensor, the value “1” is written to the tag address, and when it passes through the second sensor, the value “2” is recorded on the tag address.
After creating the relevant designs on DM, we set up a trigger, and our design is activated when the value at the designated tag address is either 1 or 2. When the value is read as 1, the design identifies the SFCs for the order and starts by selecting the smallest SFC that is not in an active status. Conversely, when the value 2 is read, the design locates the smallest active SFC for that order and completes it.
Subsequently, the design updates the tag value to 0 once the Start or Complete operation is finished. This way, when the next values of 1 or 2 are written, the trigger system we’ve established resumes its functionality.
Equipment to be monitored for tags triggered by PCo requires the creation of corresponding Indicators in DM before tags are linked by PCo. The created Indicators must then be assigned to Indicator Groups. These Indicators, organized under the Indicator Group framework, serve as data when creating Equipment Templates.
After creating the Equipment, to link its included Indicators to PCo Tags, navigate to the Manage Equipment Connectivity App and choose the newly created equipment. In the Service Providers section, you will see the OPC connection established earlier through the Manage Service Provider App.
Select the Service Provider and then navigate to the Indicator Groups section. To establish tag connections for the added Indicators, click the chain icon on the left side of the respective row. From the tags created with Kepware in the DM, choose the path of the desired tag.
Connecting Data Source To Indicator
Retrieve_SFC_Worklist Input Parameters
Start_SFCs Input Parameters
Write Indicator Values Parameters
We create a cloud process named ‘Z_TAG_CMP’.
We create a cloud process called ‘Z_TAG_CHANGE.’
Z_TAG_CHANGE Design
We create a Subscription through the Manage Automatic Triggers application, defining our relevant tag address as an Indicator. When the tag value is ‘1’ or ‘2’, we set the code to ‘On Change to True,’ as shown in the image, for our trigger system to operate.
Manage Automatic Triggers
Next, we select the design that we created. For input values, we assign the fixed plant number to ‘inPlant’ and choose the relevant tag address for ‘inStatus.’ After deploying, our trigger system is now ready to operate.
If you like this post or have any questions, please let us know in the comments.
All questions are highly appreciated.