ProSoft Technology MVI69-ADM User Manual

Page 219

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Backplane API Functions

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 219 of 342

February 20, 2013

Send MSG Instruction Configuration

Field

Value

Description

Message Type

CIP Generic

Specify CIP message type

Service Code

OE (Hex)

Get_Attribute_Single service

Object Type

4

Assembly object class code

Object ID

7

Output message instance number

Object Attribute

3

Data attribute

Num Elements

Application dependent

Size of message to be written

Path

Application dependent

Path to MVI-ADM module

Return Value

MVI_SUCCESS

A message has been received.

MVI_ERR_NOACCESS

handle does not have access.

MVI_ERR_TIMEOUT

The timeout occurred before the message was transferred.

MVI_ERR_BADPARAM

A parameter is invalid.

MVI_ERR_BADCONFIG

Send messaging is not enabled.

Example

MVIHANDLE Handle;
int rc;
WORD buffer[256];
// Wait 5 seconds for the message to be sent
rc = MVIbp_SendMessage(Handle, buffer, 256, 5000);
if (rc == MVI_SUCCESS)
printf("Message sent\n");

See Also
MVIbp_SetIOConfig (page 208)

MVIbp_ReceiveMessage (page 216)

Advertising