Mitsubishi Electric Eclipse User Manual Page 28

  • Download
  • Add to my manuals
  • Print
  • Page
    / 60
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 27
26
<4> Knowledge Required for Programming
1. Bus interface functions
The bus interface function is a library function dedicated for a C Controller module.
Using this function in a user program allows a C Controller module to easily control MELSEC-Q series
modules.
(1) Opening/closing a bus
To use the functions, open a bus at the start of the program and close the bus at the end of the program.
Functions to open/close a bus
(2) I/O access
1-point access and 1-word access are available.
1) 1-point access: A function that treats 1-point data (ON/OFF of switches and lamps)
Example of 1-point access functions
2) 1-word access: A function that treats 1-word (16 bits) data (numeric values, characters)
Example of 1-word access functions
(3) User LED control
USER LED control and 7-segment LED control are available.
Example of user LED control functions
Name Function
QBF_Open Opens a bus.
QBF_Close Closes a bus.
Point
Open or close a bus (QBF_Open/QBF_Close functions) once at the start of a program and at
the end of a program, respectively.
By using these functions only once, communication performance will be improved.
Name Function
QBF_X_In_BitEx Reads an input signal (X) in units of one point.
QBF_Y_Out_BitEx Outputs an output signal (Y) in units of one point.
QBF_Y_In_Bit_Ex Reads an output signal (Y) in units of one point.
Name Function
QBF_X_In_WordEx Reads an input signal (X) in units of words.
QBF_Y_Out_WordEx Outputs an output signal (Y) in units of words.
QBF_Y_In_WordEx Reads an output signal (Y) in units of words.
Name Function
QBF_ControlLED Controls the "USER" LED of a C Controller module.
QBF_Control7SegLED Controls the 7-segment LED of a C Controller module.
Page view 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 59 60

Comments to this Manuals

No comments