Jump to content

Recommended Posts

I'm new to PLC, please excuse my amateur question:

In J1939 Configuration Parameters, "Transmit PGN" tab, first parameter is 'Data Pointer'. Description is as follows:

 

"This is the start of the vector that contains the data that will be transmitted from the PLC."

 

How exactly does this work? How do i change the data i transmit?

 

Thank you.

Link to comment
Share on other sites

  • MVP 2014

A vector is a group of consecutive registers (usually MI values in Unitronics).   In J1939 the data area is usually 8 bytes long, so the vector is going to be 4 consecutive MI values (eg MI10, MI11, MI12 and MI13.  The vector is addressed by using the first element (MI10) and the length (4).

 

By changing the data in this vector, you change the information that is being sent when you trigger the PGN send operation.

 

Since the SPNs can be any length, you may have some work to do when converting the 8 bytes of PGN to and from the individual SPN values it contains.

Link to comment
Share on other sites

  • MVP 2014

From that example you have highlighted one of the common errors that gets made with Vectors.  Make sure you know where your vectors are and don't accidentally allocate them to something else.

 

Visilogic doesn't automaticlly mark vectors as "in use" so I usually type a description for each operand in the vector.  You can highlight a range and the system will name all of them together.  This will then mark them as "in use".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...