Micro850 CIP messaging for VFD faults.

dburnum

Member
Join Date
Oct 2008
Location
SW Kansas
Posts
163
Background: Micro850 Controller and using generic CIP messaging to a Powerflex70 VFD via a 20-COMM-E ethernet adapter.

Could someone help with this bit of STL code? This was downloaded from the RA knowledgebase downloads for the PF70, but the FaultID remains a zero value regardless of the actual fault ID internal to drive.
AB has a user manual for Powerflex 70 with a COMM-E adapter and looked through the Class codes, Instances, and Attributes. Everything else within the STL of the code works but this.

IF PF_Fault THEN
FaultCtrlCfg.TriggerType := 500 ;
FaultTarCfg.Path := ComTargetPath;
FaultTarCfg.CipConnMode := 1;
FaultTarCfg.UcmmTimeout := ComUcTimeOut;
FaultTarCfg.ConnMsgTimeout := ComConMsgTimeOut;
FaultTarCfg.ConnClose := TRUE;
FaultReqLeng := 6;
FaultAppCfg.Service := 14; (*Read 1 parameter*)
FaultAppCfg.Class := 151; (*DPI Fault object*)
FaultAppCfg.Instance := 1; (*Most recent error*)
FaultAppCfg.Attribute := 1; (*Fault Information*)

FaultTrig := TRUE;
MSG_CIPGEN_Fault(FaultTrig, FaultCtrlCfg, FaultAppCfg, FaultTarCfg, FaultRspdData, FaultReqLeng, FaultRspdData);
IF MSG_CIPGEN_Fault.Q OR MSG_CIPGEN_Fault.Status.Error THEN
PFFaultID := SHL(ANY_TO_DINT(FaultRspdData[2]),8)+ ANY_TO_DINT(FaultRspdData[1]);
END_IF;
ELSE
FaultTrig := FALSE;
MSG_CIPGEN_Fault(FaultTrig, FaultCtrlCfg, FaultAppCfg, FaultTarCfg, FaultReqData, FaultReqLeng, FaultRspdData);
PFFaultID := 0;
END_IF;

I can only slightly understand what is coded until the "Shift-Left" command that generates the fault ID.

Thanks!!!
 

Similar Topics

Hi everyone, I am working with micro850, a proximity sensor (FOTEK, PL-05P) and a 3DOF serial arm robot. I use MC_MoveRelative to control the...
Replies
1
Views
60
HI everyone! I am trying to use a Micro850 to control a SureStep (Leadshine) Stepper drive (DM805-AI) from Automationdirect. I have no trouble...
Replies
7
Views
181
Hi guys, I have had some issues with uploading a program from a Micro 850 PLC. This is the first time connecting so I don’t have a file on my...
Replies
8
Views
290
I'm using a Micro850 with a Panelview 800, programming in CCW. We'd like the customer to be able to schedule the system to startup at a certain...
Replies
5
Views
132
Currently a student, so somewhat new to this. But working with an AB 2080-LC50-24QWB, CCW version 21.01.00. CCW will connect okay to the Micro850...
Replies
9
Views
301
Back
Top Bottom