Mitsubishi QD51 Programming Manual page 185

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Converts the double precision real number to a 2-word integer and writes it into D0 and D1
20 DIM B%(1),TBL%(5)
30 A#=1234567890#
40 CDBI A#,B%(0)
50 TBL%(0)=255
60 TBL%(1)=1
70 TBL%(2)=2
80 TBL%(3)=18
90 TBL%(4)=0
100 TBL%(5)=2
110 PCRD TBL%(),B%()
120 END
11 - 15
REMARK
See the CDBI, CIDB, CISN, PCRD and PCWT instructions, and Chapter 4.
:
' Defines the array
:
' Defines the double precision real number
:
' Converts to a 32-bit integer
:
' Sets the communication station number to
the local station
:
' Specifies writing to the device memory
:
' Specifies word as the unit
:
' Specifies the data register
:
' Specifies the device number
:
' Specifies the number of processing items
:
' Executes the write operation
MELSEC-Q
11 - 15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents