(Created page with "== Control configuration == === Enabling the OPC-UA server === # Press the MENU SELECT key. # Switch to the the Setup interface at the bottom of the screen. # Press the softkey page button at the bottom right of the screen. # Open the Licenses window. # Switch to the "All options" tab at the top right. # Press the Search button to the right of the screen. # Enter "OPC" in the search field. # Press OK at the bottom right of the screen. # When "Access MyMachine / OPC UA"...") |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
=== Enabling the OPC-UA server === | === Enabling the OPC-UA server === | ||
# Press the MENU SELECT key. | # Press the [[File:MENU SELECT.webp|alt=MENU SELECT]] key. | ||
# Switch to the the Setup interface at the bottom of the screen. | # Switch to the the Setup interface at the bottom of the screen. [[File:Setup_softkey.webp|none|frame]] | ||
# Press the softkey page button at the bottom right of the screen. | # Press the softkey page button at the bottom right of the screen. [[File:Softkey_switcher.webp|frame|none]] | ||
# Open the Licenses window. | # Open the [[File:Licenses softkey.webp]] window. | ||
# Switch to the "All options" tab at the top right. | # Switch to the "All options" tab at the top right.[[File:License_all_options.webp|none|frame]] | ||
# Press the Search button to the right of the screen. | # Press the [[File:Button search.webp|alt=Search >]] button to the right of the screen. | ||
# Enter "OPC" in the search field. | # Enter "OPC" in the search field. [[File:Search_opc.webp|none|frame]] | ||
# Press OK at the bottom right of the screen. | # Press [[File:Button ok.webp|alt=OK]] at the bottom right of the screen. | ||
# When "Access MyMachine / OPC UA" is highlighted, press the Cancel button at the bottom right of the screen. | #When "Access MyMachine / OPC UA" is highlighted, press the Cancel button at the bottom right of the screen.[[File:Search result.webp|none|frame]] | ||
# Check the "Set" box for the option if it is not already checked and then press the Back button at the bottom right. | # Check the "Set" box for the option if it is not already checked and then press the Back button at the bottom right.[[File:OPC-UA enabled.webp|none|frame]] | ||
# If the option was not already enabled, restart the control. | # If the option was not already enabled, restart the control. | ||
=== | == OnTakt configuration == | ||
Set the following options in the machine setup area: | |||
* '''System:''' OPC-UA | |||
* '''Model:''' SINUMERIK 840D sl | |||
* '''NC URL:''' <code>opc.tcp://IP:PORT</code>, where <code>IP</code> is the IP address of the control and <code>PORT</code> is the configured OPC-UA server port. The port defaults to 4840 if omitted. No path is necessary after the port number. | |||
* '''NC authentication:''' <code>username:password</code>, where <code>username</code> and <code>password</code> are the OPC-UA username and password configured in the OPC-UA settings on the control. If this has not been changed, it's probably <code>OpcUaClient:OpcUaClient</code>. | |||
== Part counting == | |||
== | === Variable part counting === | ||
... | Instead of using the built-in part counters, OnTakt can also read an R-variable and interpret it as a part counter. This way, the part program can increment the part counter by incrementing an R-variable. For example, the statement <code>R5=R5+1</code> increments R-variable number 5. | ||
[[Category:OnTakt User Guide]] | [[Category:OnTakt User Guide]] |
Latest revision as of 17:53, 29 October 2024
Control configuration
Enabling the OPC-UA server
- Press the key.
- Switch to the the Setup interface at the bottom of the screen.
- Press the softkey page button at the bottom right of the screen.
- Open the window.
- Switch to the "All options" tab at the top right.
- Press the button to the right of the screen.
- Enter "OPC" in the search field.
- Press at the bottom right of the screen.
- When "Access MyMachine / OPC UA" is highlighted, press the Cancel button at the bottom right of the screen.
- Check the "Set" box for the option if it is not already checked and then press the Back button at the bottom right.
- If the option was not already enabled, restart the control.
OnTakt configuration
Set the following options in the machine setup area:
- System: OPC-UA
- Model: SINUMERIK 840D sl
- NC URL:
opc.tcp://IP:PORT
, whereIP
is the IP address of the control andPORT
is the configured OPC-UA server port. The port defaults to 4840 if omitted. No path is necessary after the port number. - NC authentication:
username:password
, whereusername
andpassword
are the OPC-UA username and password configured in the OPC-UA settings on the control. If this has not been changed, it's probablyOpcUaClient:OpcUaClient
.
Part counting
Variable part counting
Instead of using the built-in part counters, OnTakt can also read an R-variable and interpret it as a part counter. This way, the part program can increment the part counter by incrementing an R-variable. For example, the statement R5=R5+1
increments R-variable number 5.