PE6, Macro, CANFD 64bytes, failed to fill data
Posted: Fri 6. Jun 2025, 03:21
Hello everyone,
I need help understanding how to write this macro/script in PCAN-Explorer 6:
.Data(i) how to fill all 16bytes?
I need help understanding how to write this macro/script in PCAN-Explorer 6:
Code: Select all
Dim RcvMsg, TxMsg
Set RcvMsg = MyClient.Messages.Add
Set TxMsg = MyClient.Messages.Add
With TxMsg
.ID = &H220
.DLC = 10 ' 16 Bytes
.MsgType = pcanMsgTypeFD + pcanMsgTypeBRS
' fill data
Dim i
For i = 0 To 7
.Data(i) = i + &H10 ' i = 7 is OK, i > 7 just doesn't work
Next
End With