Intelligent Function Module 1-Word Data Write; Intelligent Function Module 2-Word Data Write - 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.16.3 Intelligent function module 1-word data write

n3 points of data, starting at the specified device, are written to the specified address and later of the buffer
memory in the specified intelligent function module or special function module.
Function definition

5.16.4 Intelligent function module 2-word data write

n3 2 points of data, starting at the specified device, are written to the specified address and later of the buffer
memory in the specified intelligent function module or special function module.
Function definition
5 - 72
BOOL TO_M (BOOL EN, ANY16 S1, ANY16 n1, ANY16 n2, ANY16 n3);
Argument Name
EN
S1
n1
n2
n3
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, 3 is written to address 0 of the buffer
(* memory in the intelligent function module mounted at I/O numbers 040 to 05F. *)
TO_M (X0, K3, H4, K0, K1);
Corresponding MELSEC command
TO (Writing 1-word data to intelligent function module)
BOOL DTO_M (BOOL EN, ANY32 S1, ANY16 n1, ANY16 n2, ANY16 n3);
Argument Name
EN
S1
n1
n2
n3
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, 0 is written to addresses 41, 42
(* of the buffer memory in the intelligent function module mounted at I/O
(* numbers 040 to 05F.
DTO_M (X0, K0, H4, K41, K1);
Corresponding MELSEC command
DTO (Writing 2-word data to intelligent function module)
TO_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be written (BIN 16-bit data)
Head input number of specified intelligent function
IN
module/special function module (BIN 16-bit data)
IN
Head address where data will be written (BIN 16-bit data)
IN
Number of data to be written (BIN 16-bit data)
DTO_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be written (BIN 32-bit data)
Head input number of specified intelligent function
IN
module/special function module (BIN 16-bit data)
Head address where (3 2) points of data will be written
IN
(BIN 16-bit data)
IN
Number of data to be written (BIN 16-bit data)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 72

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents