Issues turning on AE Pinnacle with TwinCAT 3 RS232

DIN509E

Member
Join Date
Feb 2020
Location
afwafasdfasdad
Posts
2
We have a Pinnacle power supply from Advanced Energy which we'd like to control using TwinCAT 3, via an EL6002 and RS-232.

I got the communication to work and can set every parameter I care for, but have issues with turning the output on.

I send the command to turn DC on [[FONT=&quot]08 | 02 | 0A], receive a positive answer [[/FONT][FONT=&quot]09 | 02 | 00 | 0B[/FONT]] and indeed, the power does rise, but only for a few milliseconds before the Pinnacle turns the output off for no apparent reason.

I used an RS-232/USB adapter and sent the same command via Python's serial library and the power stays on. No other parameters, like limits and timeouts, have been changed in between those tests.

I created minimalistic code to make sure no other communication was interfering. The first FB is creating the content of the message and adds it to the buffer, the second is running in a separate, faster task dedicated to background communication.

Message to buffer FB:

Code:
[...]
VAR
  fb_sendData : Tc2_SerialCom.SendData;
  [...]
END_VAR
--------------
IF b_dcOnButton THEN
  b_dcOnButton := FALSE;
  an_message := M_createMessage(2);
  fb_sendData(
    TXbuffer:= TxBuffer,
    pSendData:= ADR(an_message),
    Length:= SIZEOF(an_message)
  );
  b_error := fb_sendData.Error <> COMERROR_NOERROR;
END_IF
[FONT=&quot] Background communication FB:
[/FONT]
Code:
FUNCTION_BLOCK FB_backgroundCom
  VAR_IN_OUT
  TxBuffer : Tc2_SerialCom.ComBuffer;
  RxBuffer : Tc2_SerialCom.ComBuffer;
[...]
END_VAR
----------
fb_pinnacle_srlLineCtr(
  Mode:= SERIALLINEMODE_EL6_22B,
  pComIn:= ADR(stIn_pinnacle),
  pComOut:= ADR(stOut_pinnacle),
  SizeComIn:= UINT_TO_INT(SIZEOF(stIn_pinnacle)),
  Error=> b_pinnacle_ctrlError,
  ErrorID=> e_pinnacle_ctrlErrorID,
  TxBuffer:= TxBuffer,
  RxBuffer:= RxBuffer
);
[FONT=&quot]
Does anyone have any idea why this behaviour could appear or what I could test?

We have other issues with the device. I don't think they're relevant to this particular issue, but who knows.
[/FONT][FONT=&quot]1. When we control it using Profibus and set it to pulse between roughly 70 and 350 kHz, we get a "E051 PROFIBUS Watch Dog Expired" error.[/FONT]
[FONT=&quot]2. Having disconnected all bus cables and using manual control, we receive a "E020 Interlock Open: User". when operating pulsed above ~70 kHz. It's not an issue of an open interlock though.[/FONT]
[FONT=&quot]In both cases we suspect EMI.

Since I don't have a lot of experience, I welcome even the most obvious suggestions.
[/FONT]
 
Last edited:
Hello an welcome to the forum. I am not familiar with this device but I am familiar with Profibus and what you describe is consistent with what you are thinking. Problems with EMI. You must verify the grounding.
In the case of USB/RS232C make sure the cable is as short as possible and the baud rate should be the slowest the device allows. Also for Profibus, if you are able to use a slow baud rate it may be worth trying. Needless to say, you must use standard Profibus cables, connectors and terminators.
 
The issue was with the line
Code:
Length:= SIZEOF(an_message)


it sends too many bytes. After changing the code to transmit as many bytes as are in the specific message, the power supply stays on.
 

Similar Topics

Hello, I am currently in the final week of my internship and I have encountered issues with communication between a PowerFlex 700 variable...
Replies
0
Views
51
Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
5
Views
145
I'm at a loss here and hoping someone else has seen this: Background: We've got two identical machines on our floor (we'll call them machine A &...
Replies
0
Views
69
I have an Allen Bradley temperature switch that I am trying to use in studio 5000. I am getting the message "Unable to interpret the IODD file"...
Replies
0
Views
97
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
258
Back
Top Bottom