beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 209

background image

11 - 10

YASNAC PCNC PLC Programming Manual Chapter 11: YASNAC Paradym-31 DLL

11.9 Functions for Obtaining Contact and Byte Data

BOOL Getvalue(Word*Address,Byte*Bitnum,Byte*Datatype,Dword*pData,HWND)

*Address:

A maximum of 100 contacts in 4-digits is possible
Array is ended by 0.

*Bitnum:

It is possible to set up within 0 ~ 7 (effective when Datatype is 0.).

*Datatype:

0=bit,1=byte,2=word,3=dword

*pData:

Obtain contact data pointer
1 data is fixed as 4 bytes.
Answer data during bit requesting returns by 0 or 1.

HWND:

Handling number of WIZDOM’s main window

Main window handling is obtained from WIZDOM application.
The status of start/stop is notified.

When an error occurs, the following message is displayed in the message box.

Note: Although data can be obtained that extends over the range of the I/O area or the NC

standard signal diagnosis number area using the contact and byte data obtaining
function (Getvalue), it is indefinite.

Message Contents

Meaning

Communication Error

An error occurred during communication.

Communication Time Out

There is no response.

Port Open Error

Port is not opened.

Request Data Error

Requested contact is wrong.

Already Used

It has already been used.