Powerflex 40 msg write command?

I need some help setting up msg instruction to control a powerflex 40. The PLC is a 1769-l32e version 20. The information I've googled has pretty straight forward but I can't get it run. I was able to read the status bits using slc 500 read. But when I used the slc 500 write it just errored out. When I tried using the set attribute using service code 10 / class F / instance 1/ attribute A. It just errors out on 16#0014 (Undefined or unsupported attribute). I've used similar msg commands with the micrologix family with no issues so it's a learning curve I'm having. I know it's probably something stupid.
 

Attachments

  • Screenshot 2026-09-24 102027.png
    Screenshot 2026-09-24 102027.png
    46.2 KB · Views: 21
Not the answer to your question, but...

I'm presuming the drive has a 22-COMM-E installed, or you wouldn't be this far. Why not just put it in the IO tree? Then communication is handled cyclically by the controller and you don't have to fool with it. You'll have DriveName:I and DriveName:O tags to map to the motor logic.

Maybe you want to fool with it just to do it...
Maybe you're maxed out on Ethernet nodes...
Maybe you're doing serial and the Ethernet MSG screenshot has misled me...
 
Was that screenshot from a user manual or a Rockwell document, or synthesized by an AI service ?

Are you using controller's serial port or the Ethernet port and a 22-COMM-E ?

Using MSG instructions is disfavored with the MicroLogix family, but is sometimes done because those controllers don't support cyclic I/O connections. The CompactLogix does, and that is by far the best way to control VFDs over a network.

You always need to send a nonzero value in milliseconds to the Timeout register (N42:3 in SLC-500 style, if I recall correctly) before writing a control command, or the control command Write will always error out.
 
Also: never ever ever take your technical advice from the AI manure lagoon at Industrial Monitors Direct.

0x07 is the DPI object, and PowerFlex 40 drives don't have DPI. They have DSI, which is a superset of Modbus RTU.

The AI doesn't know that because the AI doesn't know anything.
 
Not the answer to your question, but...

I'm presuming the drive has a 22-COMM-E installed, or you wouldn't be this far. Why not just put it in the IO tree? Then communication is handled cyclically by the controller and you don't have to fool with it. You'll have DriveName:I and DriveName:O tags to map to the motor logic.

Maybe you want to fool with it just to do it...
Maybe you're maxed out on Ethernet nodes...
Maybe you're doing serial and the Ethernet MSG screenshot has misled me...
I'm just curious on the how to and I've come on programs that use the form of messaging in the early logix 5000 structure like version 13 to 17 but I can't remember how it was setup.
 
Also: never ever ever take your technical advice from the AI manure lagoon at Industrial Monitors Direct.

0x07 is the DPI object, and PowerFlex 40 drives don't have DPI. They have DSI, which is a superset of Modbus RTU.

The AI doesn't know that because the AI doesn't know anything.
Some of the how to came from a tech note for setting up a MSG instruction for controlling a 755. Which matched what I deciphered from the manual but it didn't work.
 
I'm just curious on the how to and I've come on programs that use the form of messaging in the early logix 5000 structure like version 13 to 17 but I can't remember how it was setup.


Just add it to the tree.

If you are dead set on trying to just msg a command... then the manuals contain the information about how to make those connections.


refer to this, it's labeled as for everyone.
 
Since you’re fooling with it just to fool with it (nothing wrong with that, I like to experiment too) you might want to check out CCW sample code to run a PF525 and other model drives by messaging packed into a user defined function block. It’s a different platform than CLX, but it’s the same messaging and a full sequence of message control. The UDFB is structured text, so there’s more exposure to potentially new stuff.

Edit: even this is becoming obsolete with the new E controllers that do support cyclic communication with a drive in the equivalent of an IO tree.
 
The PowerFlex 755 and PowerFlex 40 are different drives, with different interface technologies (DPI vs DSI) and different levels of sophistication.

In case you are confused by your searches, I will try to be clear: using MSG instructions to control a VFD is not the best method. You should only use it when you have no other option for your combination of controller and VFD.

For a CompactLogix and PowerFlex 40 that both have Ethernet, you should put the drive in the I/O tree and let the build-in scheduling services handle the communications.
 
If you are "just curious on the how to", then you can read the manuals for yourself. Ideally, read the manuals for the PowerFlex 40, rather than a different drive.

If you can't "decipher" them, then post a specific question that shows that you've learned something from the manuals.

If you don't really mean "just curious" and want that connection to work reliably, do the standard, normal, supported, mechanism of putting the drive in the I/O tree under the Ethernet port.
 


if you are new i would recommend grabbing his books as a reference, its nice to have a hard copy to refer back to when you are learning, he has youtube videos going over all the lessons and this along with youtube would be a good resource.
 
Since you’re fooling with it just to fool with it (nothing wrong with that, I like to experiment too) you might want to check out CCW sample code to run a PF525 and other model drives by messaging packed into a user defined function block. It’s a different platform than CLX, but it’s the same messaging and a full sequence of message control. The UDFB is structured text, so there’s more exposure to potentially new stuff.

Edit: even this is becoming obsolete with the new E controllers that do support cyclic communication with a drive in the equivalent of an IO tree.
I've done this one with a micro820 with the ccw software . Like I said I've used MSG instruction under the slc, micrologix family with the RSlogix 500 software. But studio 5000 is a little different especially when I can use the slc500 read msg to get the drives status but I can't use the write to control the logic command bits.
 
You aren't using a Micro 800 or and SLC-500 or a MicroLogix.

In my opinion, you should not use the limited, complicated, and unreliable mechanisms those controllers rely on to communicate with PowerFlex drives over Ethernet.

Instead, you should use the feature-rich, simple, and reliable method of putting a VFD object in the I/O tree so that the controller creates a cyclic I/O connection to it for your use, with automatically-created tags with descriptive names.

>I can use the slc500 read msg to get the drives status but I can't use the write to control the logic command bits.

That is very probably because you aren't writing a value to the Timeout address (N42:3) and then writing a command message faster than every X milliseconds afterwards. That is normal and expected behavior, which I explained in post #3 of this thread.
 
If you are "just curious on the how to", then you can read the manuals for yourself. Ideally, read the manuals for the PowerFlex 40, rather than a different drive.

If you can't "decipher" them, then post a specific question that shows that you've learned something from the manuals.

If you don't really mean "just curious" and want that connection to work reliably, do the standard, normal, supported, mechanism of putting the drive in the I/O tree under the Ethernet port.
I've read powerflex 40 and the 20-Comm-e manuals and scrolled through the 520 series and the 700 just to compare and there isn't a lot of difference in setting up the msg instruction and that is the confusing part especially when set it up and it partially works meaning I can get and set parameters but I can't use the set attribute msg to control logic command from a 16 bit INT like in the rslogix 500 software I know it's just something I'm missing and it's probably stupid like it usually is.
 
why don't you post the code you have so the guys who browse and are bored can give you some feedback on it then?

Hopefully you have what Ken mentioned twice now and what was in the links you were given, and what was in the manuals about N42:3 timeout time defaulting to 0 and needing a value higher than that in order to prevent a timeout fault.

  • There are 3 MSG's needed to control the drive. The first MSG writes to N42:3, this is the timeout in the drives communication module (i.e. 20-COMM-E, etc), the value needs to be set between 5-20 (seconds). The timeout is the amount time, that if the communication module does not receive another MSG, a communication loss will be issued to the drive. The timeout is stored in RAM in the communication, anytime the communication module is power cycled this timeout MSG must be re-written again. This timeout is very important, if the timeout is not changed to a value between 5-20, it will reject the other MSG write for control (N41). However the MSG read will work if the timeout is not written to.
  • The second MSG writes to the Control word, speed reference, and Datalinks.
  • The third MSG reads the Status word, speed feedback, and Datalinks.
  • If any of the MSG instructions result in the ERROR bit getting set for any reason, you will need to re-send the MSG Write to N42:3 again. If this message receives an Error, wait from 1 to 5 minutes and send it again. You will not be able to Write the other message until this write to N42:3 is successful with the DONE bit being set.
  • Logic Command word, a '0 = Not Stop' condition must first be present before a '1 = Start' condition will start the drive. The Start command acts as a momentary Start command
 

Similar Topics

Hello all, I have a PF525 connected to a CompactLogix processor via Ethernet. I am currently retrieving the most recent fault code via explicit...
2
Replies
2,889
Views
I am trying to communicate to a Powerflex 525 using a Micro 820 using a MSG instruction over Ethernet. I am using the position UDFB from the AB...
2
Replies
2,530
Views
Hi All - I am trying to communicate between a Micrologix 1100 and a Powerflex 525 via CIP MSG. There is a great Knowledgebase and TechNote...
3
Replies
6,918
Views
Hello everyone, I am having some troubles with getting a powerflex 40 to run from a msg instruction thru a Ethernet connection from a micrologix...
3
Replies
5,274
Views
So, this is a new one. We have a handful of forming presses with PowerFlex 525 drives on their main flywheel motors. I added some scattered read...
0
Replies
173
Views
Top