Mitsubishi QD51 Programming Manual page 207

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Converts the single precision real number to a 2-word integer and writes it into D0 and D1
20 DIM B%(1)
30 A!=999999!
40 CSNI A!,B%(0)
70 TBL%(0)=255
80 TBL%(1)=1
90 TBL%(2)=2
100 TBL%(3)=18
110 TBL%(4)=0
120 TBL%(5)=2
130 PCRD TBL%(),B%()
140 END
11 - 37
REMARK
See the CISN, CDBI, CSNI, PCRD and PCWT instructions, and Chapter 4.
:
' Defines the array
:
' Defines the single 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 (D)
:
' Specifies the device number (0)
:
' Specifies the number of processing items
:
' Executes the write operation
MELSEC-Q
11 - 37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents