PROFIdrive conformance tool V6

Jahi
Posts: 1
Joined: 29 Jul 2025, 08:37

PROFIdrive conformance tool V6

Post

I have Profile tester version 6.0.0.0 Inc. 38

I have defined this variable "$fault_1_possible" to be 0 (same value as with older tool version)
###############################################################################
# variables for Fault buffer tests
###############################################################################

#version of the fault buffer: 0 = minimum fault buffer, 1 = complete fault buffer
$complete_fault_buffer = 0

#select, if Fault 1 /Fault 2 /Warning can be simulated
$fault_1_possible = 0
$fault_2_possible = 0
$warning_possible = 0

When I execute this test "DA_Diagnosis_Reset_timing.rb" I get this error “Result: Error, state: 6, Error: undefined method `close_ar' for nil:NilClass”

22:54:04:178 dut - 1.1 (DO-ID 1) Information No error message can be created, no fault buffer test possible.
22:54:04:180 Script errored Result: Error, state: 6, Error: undefined method `close_ar' for nil:NilClass

I assume it is this test that it executes (from "DA_Diagnosis_Reset_timing.rb") when it fails
if $fault_1_possible == 0
$str = sprintf('No error message can be created, no fault buffer test possible.')
message($str)
$connection1.close_ar()
abort_test()
end

What does that error mean and where could the issue be? In my config file or in the test itself?
Raik.Zachmann
PROFINET Expert
Posts: 43
Joined: 19 Sep 2023, 07:37

Re: PROFIdrive conformance tool V6

Post

Jahi wrote: 30 Jul 2025, 09:48 I have Profile tester version 6.0.0.0 Inc. 38

I have defined this variable "$fault_1_possible" to be 0 (same value as with older tool version)
###############################################################################
# variables for Fault buffer tests
###############################################################################

#version of the fault buffer: 0 = minimum fault buffer, 1 = complete fault buffer
$complete_fault_buffer = 0

#select, if Fault 1 /Fault 2 /Warning can be simulated
$fault_1_possible = 0
$fault_2_possible = 0
$warning_possible = 0

When I execute this test "DA_Diagnosis_Reset_timing.rb" I get this error “Result: Error, state: 6, Error: undefined method `close_ar' for nil:NilClass”

22:54:04:178 dut - 1.1 (DO-ID 1) Information No error message can be created, no fault buffer test possible.
22:54:04:180 Script errored Result: Error, state: 6, Error: undefined method `close_ar' for nil:NilClass

I assume it is this test that it executes (from "DA_Diagnosis_Reset_timing.rb") when it fails
if $fault_1_possible == 0
$str = sprintf('No error message can be created, no fault buffer test possible.')
message($str)
$connection1.close_ar()
abort_test()
end

What does that error mean and where could the issue be? In my config file or in the test itself?
Hi,
which kind of device you are using, Encoder or Drive? (I guess an Encoder). You must define a way to generate faults to verify the the mandatory diagnosis behavior. Did you create a new global file? I would expect that Acyclic_Functions_DA.rb or Acyclic_Functions_DA_ENC.rb were not executed before running the mentioned test script. Those functions are automatically executed out of the latest global file. Please get in contact with [email protected], which is the official support for Profile Tester and Script issues.
Raik.Zachmann
PROFINET Expert
Posts: 43
Joined: 19 Sep 2023, 07:37

Re: PROFIdrive conformance tool V6

Post

Raik.Zachmann wrote: 31 Jul 2025, 14:59
Jahi wrote: 30 Jul 2025, 09:48 I have Profile tester version 6.0.0.0 Inc. 38

I have defined this variable "$fault_1_possible" to be 0 (same value as with older tool version)
###############################################################################
# variables for Fault buffer tests
###############################################################################

#version of the fault buffer: 0 = minimum fault buffer, 1 = complete fault buffer
$complete_fault_buffer = 0

#select, if Fault 1 /Fault 2 /Warning can be simulated
$fault_1_possible = 0
$fault_2_possible = 0
$warning_possible = 0

When I execute this test "DA_Diagnosis_Reset_timing.rb" I get this error “Result: Error, state: 6, Error: undefined method `close_ar' for nil:NilClass”

22:54:04:178 dut - 1.1 (DO-ID 1) Information No error message can be created, no fault buffer test possible.
22:54:04:180 Script errored Result: Error, state: 6, Error: undefined method `close_ar' for nil:NilClass

I assume it is this test that it executes (from "DA_Diagnosis_Reset_timing.rb") when it fails
if $fault_1_possible == 0
$str = sprintf('No error message can be created, no fault buffer test possible.')
message($str)
$connection1.close_ar()
abort_test()
end

What does that error mean and where could the issue be? In my config file or in the test itself?
Hi,
which kind of device you are using, Encoder or Drive? (I guess an Encoder). You must define a way to generate faults to verify the the mandatory diagnosis behavior. Did you create a new global file? I would expect that Acyclic_Functions_DA.rb or Acyclic_Functions_DA_ENC.rb were not executed before running the mentioned test script. Those functions are automatically executed out of the latest global file. Please get in contact with [email protected], which is the official support for Profile Tester and Script issues.
It could be also related to line "$connection1.close_ar()" as the device access AR is established later in the script. This line should be removed like in DA_Diagnosis_Edge_monitoring.rb.
PD_Benny
PROFINET Expert
Posts: 2
Joined: 19 Sep 2023, 09:04

Re: PROFIdrive conformance tool V6

Post

Jahi wrote: 30 Jul 2025, 09:48 I have Profile tester version 6.0.0.0 Inc. 38

I have defined this variable "$fault_1_possible" to be 0 (same value as with older tool version)
###############################################################################
# variables for Fault buffer tests
###############################################################################

#version of the fault buffer: 0 = minimum fault buffer, 1 = complete fault buffer
$complete_fault_buffer = 0

#select, if Fault 1 /Fault 2 /Warning can be simulated
$fault_1_possible = 0
$fault_2_possible = 0
$warning_possible = 0

When I execute this test "DA_Diagnosis_Reset_timing.rb" I get this error “Result: Error, state: 6, Error: undefined method `close_ar' for nil:NilClass”

22:54:04:178 dut - 1.1 (DO-ID 1) Information No error message can be created, no fault buffer test possible.
22:54:04:180 Script errored Result: Error, state: 6, Error: undefined method `close_ar' for nil:NilClass

I assume it is this test that it executes (from "DA_Diagnosis_Reset_timing.rb") when it fails
if $fault_1_possible == 0
$str = sprintf('No error message can be created, no fault buffer test possible.')
message($str)
$connection1.close_ar()
abort_test()
end

What does that error mean and where could the issue be? In my config file or in the test itself?
the exception is thrown because of class variable $connection1 has not been instantiated. In a future PT release the check if DUT supports a failure will be after opening the DA AR.
Ask another Question