# Creating SoftPLC User Data

The integration is implemented so that we have shared memory mapped between the SoftPLC and the OpenProtocol adapter and upto six virtual stations are supported. A virtual station is allotted 100 bytes for the data to the SoftPLC and 100 bytes for the data from the SoftPLC. A total of 600 bytes is mapped in both directions in total.

The SoftPLC can interact with protocol adapters through a dedicated part of the shared memory.

1. Select Add in the General SoftPLC Settings field.

2. In the Create SoftPLC user data window, choose the relevant protocol from the drop-down.

3. Fill in the To SoftPLC and From SoftPLC address fields with 0 for the Start addresses and 599 for the End addresses.

4. Select Add.

   The Global_Variables* section in the Multiprog software will contain the output variables (opOUT_VSX) and input variables (opIN_VSX) for each virtual station with the following addresses.

   Virtual Stations | Open Protocol user Data To SoftPLC | Open Protocol user Data From SoftPLC
   Virtual Station 1 | %MB3.38400 | %MB3.40448
   Virtual Station 2 | %MB3.38500 | %MB3.40548
   Virtual Station 3 | %MB3.38600 | %MB3.40648
   Virtual Station 4 | %MB3.38700 | %MB3.40748
   Virtual Station 5 | %MB3.38800 | %MB3.40848
   Virtual Station 6 | %MB3.38900 | %MB3.40948

   If you are importing or updating a project that does not already have the above addresses set, then it must be manually added in Multiprog.

5. Select SoftPLC ON or OFF.

   - On: If the SoftPLC process is lost the tool will be locked from performing any tightenings.

   - Off: If the SoftPLC process is lost the tool will still be able to perform tightenings.

6. Perform open protocol operations in the controller.

7. Push the changes to the controller.