This is a RobotStudio Smart Component to connect GI/GO to SIEMENS PLC using Snap7 library.
- Update ABB.Robotics.* References to Good RobotStudio SDK Version path with Project - Add Reference - Browse.
- On Project Properties:
- Application: Choose good .NET Framework version.
- Build Events: Post Build Events: Replace with the good LibraryCompiler.exe Path.
- Debug: Start External Program: Replace with the good RobotStudio.exe Path
This not work if project on network drive, let it clear.
- In \RSConnectGIOToSnap7\RSConnectGIOToSnap7.en.xml:
- Replace xsi:schemaLocation value with good one.
- Same for \RSConnectGIOToSnap7\RSConnectGIOToSnap7.xml.
- In $(RobotStudioPath)\Bin\RobotStudio.exe.config file:
- Add in section
<configuration><runtime>
<loadFromRemoteSources enable="true"/>
- Add in section
- Start first RobotStudio to get RobotStudio.exe.config loaded.
- Then attach its process in VisualStudio Debug - Attach to Process..
- PLC_Addr:
IP Address of PLC IPV4.
For PLCSim, you have to run NetToPLCSim and enter PC IP. - PLC_Rack:
S7_300 Rack=0
S7_400 See HW Config
S7_12xx/15xx Rack=0 - PLC_Slot:
S7_300 Slot=2
S7_400 See HW Config
S7_12xx/15xx Slot=1 - GI_ByteNumber:
Number of Byte for GI to connect to in Station Logic.
Change it to get GI appearing. - GI_FirstByteAddress:
First output byte to connect at GI.
You can use: ABx QBx MBx DBx.DBBy - GO_ByteNumber:
Number of Byte for GO to connect to in Station Logic.
Change it to get GO appearing. - GO_FirstByteAddress:
First input byte to connect at GO.
You can use: EBx IBx MBx DBx.DBBy