Bit Connection Of Any Data; Byte Unit Data Disconnection - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.14.11 Bit connection of any data

The bits of the data stored in and after the specified device are connected in units of the specified bits.
Function definition

5.14.12 Byte unit data disconnection

The BIN 16-bit data stored in and after the specified device are disconnected into n bytes.
Function definition
5 - 64
NUNI_M
BOOL NUNI_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 D);
Argument Name
EN
S1
S2
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the bits of the data stored in and after *)
(* iData1 are connected in units of iData2 bits, and the result is stored into
(* Result and later.
NUNI_M (X0, iData1, iData2, Result);
Corresponding MELSEC command
NUNI (Connection of any bit data)
BOOL WTOB_MD (BOOL EN, ANY16 S1, ANY16 n, ANY16 D);
Argument Name
EN
S1
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the 16-bit data stored in and after
(* iData1 is disconnected in iData2 bytes, and the result is stored into Result
(* and later.
WTOB_MD (X0, iData1, iData2, Result);
Corresponding MELSEC command
WTOB (Disconnection into byte unit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be connected (BIN 16-bit data)
Connection unit (number of bits to be connected) (BIN
IN
16-bit data)
OUT
Connection result (BIN 16-bit data)
WTOB_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be disconnected in byte units (BIN 16-bit data)
IN
Number of resultant byte data (BIN 16-bit data)
OUT
Disconnection result (BIN 16-bit data)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
*)
5 - 64

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents