Recent Posts

Pages: [1] 2 3 ... 10
1
Communication / Re: Use PEAK-to-USB for Plus+1 service tool
« Last post by Morten Rosengreen on August 03, 2022, 09:28:33 AM »
Thanks for reply
Did you manage to find the correct file?

I have tried, but could see the log for the RP1210:
Parse results for: C:\WINDOWS\RP121032.INI:

--PEAKRP32
   Parsing: PEAKRP32
   Parse results for: C:\WINDOWS\PEAKRP32.ini:
      Name:        PEAK-System PCAN Adapter
      Address1:    Otto-Roehm str. 69
      Address2:    (Not specified)
      City:        Darmstadt
      Country:     Germany
      State:       Hessen
      Postal:      64293
      Telephone:   0049-6151-817320
      Fax:         0049-6151-817329
      VendorURL:   http://www.peak-system.com
      Version:     3.0
      RP1210 Version:    C
      *** WARNING *** [C:\WINDOWS\PEAKRP32.ini]   Gateway uses C. PLUS+1 Service Tool is tested with RP1210A and RP1210B.

      CANFormatsSupported:    3,4,5
      Protocols:       10,20,30
      Devices:       

      C:\WINDOWS\system32\PEAKRP32.dll exported functions:
         ClearRegisteredDevices
         GetLicenseInfo
         GetLicenseStatus
         RP1210_ClientConnect
         RP1210_ClientDisconnect
         RP1210_GetErrorMsg
         RP1210_GetHardwareStatus
         RP1210_GetLastErrorMsg
         RP1210_Ioctl
         RP1210_ReadDetailedVersion
         RP1210_ReadMessage
         RP1210_ReadVersion
         RP1210_SendCommand
         RP1210_SendMessage
         RegisterAttachedDevices
         RegisterPEAKRP1210
         RegisterRPDevice
         UnregisterPEAKRP1210
         UnregisterRPDevice
      --
      Attempting to add protocol: 10
      Protocol: 10
         ProtocolDescription:    CAN Network Protocol
         ProtocolString:    CAN
         ProtocolSpeed:       125,250,500,1000,Auto
         ProtocolParams:    
         Devices:       
      *** SKIPPED *** This protocol has no useable devices!

      Failed to add protocol: 10
      --
      Attempting to add protocol: 20
      Protocol: 20
         ProtocolDescription:    SAE J1939 Protocol
         ProtocolString:    J1939
         *** SKIPPED *** "ProtocolString" must be CAN

      Failed to add protocol: 20
      --
      Attempting to add protocol: 30
      Protocol: 30
         ProtocolDescription:    ISO15765 Vehicle Protocol
         ProtocolString:    ISO15765
         *** SKIPPED *** "ProtocolString" must be CAN

      Failed to add protocol: 30
      *** WARNING *** [C:\WINDOWS\PEAKRP32.ini]   Generic CAN protocol is not supported.

      --
      Attempting to add protocol: 10
      Protocol: 10
         ProtocolDescription:    CAN Network Protocol
         ProtocolString:    CAN
         *** SKIPPED *** "ProtocolString" must be J1939

      Failed to add protocol: 10
      --
      Attempting to add protocol: 20
      Protocol: 20
         ProtocolDescription:    SAE J1939 Protocol
         ProtocolString:    J1939
         ProtocolSpeed:       125,250,500,1000,Auto
         ProtocolParams:    
         Devices:       
      *** SKIPPED *** This protocol has no useable devices!

      Failed to add protocol: 20
      --
      Attempting to add protocol: 30
      Protocol: 30
         ProtocolDescription:    ISO15765 Vehicle Protocol
         ProtocolString:    ISO15765
         *** SKIPPED *** "ProtocolString" must be J1939

      Failed to add protocol: 30
         *** ERROR *** [C:\WINDOWS\PEAKRP32.ini]   No valid protocols (The Generic CAN or J1939 protocol is needed by PLUS+1 Service Tool)

   Failed to parse: C:\WINDOWS\PEAKRP32.ini
*** WARNING *** No RP1210 vendor files parsed successfully
2
Controllers / Re: POU Variable RETAIN
« Last post by acmall on August 02, 2022, 04:37:53 PM »
Can you post your code as it is now?
3
Controllers / Re: POU Variable RETAIN
« Last post by macbahi on August 02, 2022, 03:44:58 PM »
Hi acmall,

I do it but still the same problem. NbIncrument and CounteurIncrement are also initialized to 0 every call.

Thanks
Best regards
4
Controllers / Re: POU Variable RETAIN
« Last post by macbahi on August 02, 2022, 02:07:50 PM »
Hi!

Thank you Sir.

With best regards
5
Controllers / Re: POU Variable RETAIN
« Last post by acmall on August 02, 2022, 09:21:38 AM »
If you want to keep the valve of NbIncrument and CounteurIncrement between calls use a Function Block instead of a Function.

A Function does not store the valve of it's variables between calls so each time the function is called NbIncrument and CounteurIncrement will always be initialised to 0.  A Function Block will store the value variables.




6
Controllers / Re: POU Variable RETAIN
« Last post by macbahi on August 01, 2022, 05:56:19 PM »
HI Tom,

Sorry Tom It's ok but now I have another problem. Please see image.

My function is working without VAR RETAIN but the result is not good.
As example When NbIncrement_Scan =1 the output is equal to input. It's Ok.

But when My NbIncrement_Scan est >1 then the output is equal to zero.

That's why I tried to use VAR RETAIN.

I hope you understand my problem.

Thanks in advance for your help

Best regards
7
Controllers / Re: POU Variable RETAIN
« Last post by macbahi on August 01, 2022, 05:26:51 PM »
Hi Tom,

Tank you very much to replay me.
But I didn't understand.  Please could you give more detail. Or Correct example.
I am not familiarized with POU ST

Thanks in advance.

With best regards
8
Controllers / Re: POU Variable RETAIN
« Last post by FluidPowerTom on August 01, 2022, 05:15:20 PM »
You've got a colon instead of a semicolon at the end of your first RETAIN variable declaration.
9
Controllers / POU Variable RETAIN
« Last post by macbahi on August 01, 2022, 03:03:29 PM »
Hello,

I am using POU with structured text ST as you see in my example.
I do average of some numbers.
Like you see when I use Retain Variable I have problem as you see in picture.

Please could you tell me where the problem

Thanks for your help

With best regards
10
Communication / Re: Use PEAK-to-USB for Plus+1 service tool
« Last post by tronelec on July 28, 2022, 03:42:03 AM »
aca print de pantalla, select gateway modo virtual

Pages: [1] 2 3 ... 10