### ProductInstanceUri Examples Source: https://reference.opcfoundation.org/specs/OPC-10000-21/5.2 Examples of globally unique resource identifiers for devices. ```text urn:some-company.com:5ff40f78-9210-494f-8206-c2c082f0609c urn:some-company.com:model-xyz:snr-16273849 ``` -------------------------------- ### Example Guid String Source: https://reference.opcfoundation.org/specs/OPC-10000-6/v1.05.07/full An example of a Guid value formatted as a string. ```string C496578A-0DFE-4B8F-870A-745238C6AEAE ``` -------------------------------- ### Example ProductInstanceUri Source: https://reference.opcfoundation.org/specs/OPC-30300/4.3 An example value for the org.opcfoundation.product_instance_uri attribute. ```string "urn:some-company.com:2025-01:model-xyz:snr-16273849" ``` -------------------------------- ### Guid Encoding Example Source: https://reference.opcfoundation.org/specs/OPC-10000-6/v1.05.07/full Illustrates the byte-level encoding of a Guid in a byte stream, showing its structure as defined in Table 2. ```text Figure 5 illustrates how the _Guid_ "72962B91-FA75-4AE6-8D28-B404DC7DAF63" is encoded in a byte stream. ``` -------------------------------- ### Shock Resistance Example Source: https://reference.opcfoundation.org/specs/OPC-40400-1/full Examples of shock resistance specifications from different standards. ```text Shock resistance according to EN 60068-2-27: ≤ 100 g (981 m/s2) IEC 60068-2-27:2008 - Half-sine of 15 or 5 g peak amplitude and a duration of 11 or 30 msec. ``` -------------------------------- ### Example for the calculation of SPDU_ID_1, SPDU_ID_2 and SPDU_ID_3 (informative) Source: https://reference.opcfoundation.org/specs/OPC-10000-15/v1.05.04/full Figure 22 shows a concrete example of the calculation of SPDU_ID_1 , SPDU_ID_2 and SPDU_ID_3. The following input values were chosen for the calculation: SafetyBaseID is the GUID “72962B91-FA75-4AE6-8D28-B404DC7DAF63”, SafetyProviderID has the value 0xE0EA6B40, SafetyStructureSignature has the value 0xDE7329FD and the SafetyProviderLevel_ID is chosen as 0xDEAA9DEE (representing SIL 3). ```text Figure 22 shows a concrete example of the calculation of _SPDU_ID_1_ , _SPDU_ID_2_ and _SPDU_ID_3_. The following input values were chosen for the calculation: _SafetyBaseID_ is the _GUID_ “72962B91-FA75-4AE6-8D28-B404DC7DAF63”, _SafetyProviderID_ has the value 0xE0EA6B40, _SafetyStructureSignature_ has the value 0xDE7329FD and the _SafetyProviderLevel_ID_ is chosen as 0xDEAA9DEE (representing _SIL_ 3). ``` -------------------------------- ### OpenSecureChannel Response Example Source: https://reference.opcfoundation.org/specs/OPC-30300/v1.00.0/a-2 This code snippet illustrates the use of the GTA API to prepare an OpenSecureChannel Response, including opening contexts, getting server certificates, and verifying data. ```c gta_errinfo_t errinfo = 0; char personality_name[] = "urn:manufacturer.com:2024-10:myproduct:myserver_appid?" "cg=DefaultApplicationGroup&ct=Rsa2048&ix=1"; char profile[] = "org.opcfoundation.Aes256-Sha256-RsaPss"; char certificate_name = "my_server"; char trustlist_personality_name[] = "urn:manufacturer.com:2024-10:myproduct:myserver_appid?" "cg=DefaultApplicationGroup; char trustlist_profile[] = "ch.iec.30168.basic.local_data_integrity_only"; gta_context_handle_t h_ctx = GTA_HANDLE_INVALID; h_ctx = gta_context_open( h_inst, personality_name, profile, &errinfo); /* Get server certificate from personality attribute (optional) */ char cert_buffer[CERT_SIZE]; myio_obufstream_t ostream_cert = { 0 }; gta_personality_get_attribute( h_ctx, certificate_name, (gtaio_ostream_t*)&ostream_cert, &errinfo); myio_close_obufstream(&ostream_cert, &errinfo); /* Prepare OpenSecureChannel Response */ gta_context_handle_t h_ctx_seal = GTA_HANDLE_INVALID; h_ctx_seal = gta_context_open( h_inst, trustlist_personality_name, trustlist_profile, &errinfo); char trustlist_buffer[] = {…}; size_t trustlist_len = …; myio_ibufstream_t istream_trustlist = { 0 }; myio_open_ibufstream( &istream_trustlist, trustlist_buffer, trustlist_len, &errinfo); char seal_buffer[] = {…}; size_t seal_len = …; myio_ibufstream_t istream_seal = { 0 }; myio_open_ibufstream( &istream_seal, seal_buffer, seal_len, &errinfo); if (!gta_verify_data_detached( h_ctx_seal, (gtaio_istream_t*)&istream_trustlist, ``` -------------------------------- ### Example 1: Torque (used in Rundown) Step that transitions when it reaches a configured Target Torque and the Angle is monitored. Source: https://reference.opcfoundation.org/specs/OPC-40450-1/v1.01.0/full This example shows the ResultValue for Torque and Angle when a step transitions based on reaching a target torque. ```text ResultValue1 (Torque): MeasuredValue = 3.01 TargetValue = 3.0 ResultEvaluation = OK ValueTag = EXIT_TRIGGER HighLimit = 6.0 EngineeringUnits = Newton Metre ResultValue2 (Angle): MeasuredValue = 360 ResultEvaluation = OK ValueTag = EXIT LowLimit = 45 HighLimit = 400 EngineeringUnits = Degree ```