Mitsubishi QD51 Programming Manual page 196

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Converts 2-word integer in D0, D1 to a double precision real number
20 DIM TBL%(5),A%(1)
30 TBL%(0)=255
40 TBL%(1)=1
50 TBL%(2)=2
60 TBL%(3)=18
70 TBL%(4)=0
80 TBL%(5)=2
90 PCRD TBL%(),A%()
120 A!=CISN(A%(0))
140 PRINT "D0, D1 value -->";A!
150 END
11 - 26
REMARK
See the CIDB, CDBI, CSNI, PCRD and PCWT instructions, and Chapter 4.
:
' Defines arrays
:
' Sets the communication station number to
the local station
:
' Specifies readout of the device memory
:
' Specifies word as the unit
:
' Specifies the data register
:
' Specifies the device number
:
' Specifies the processing count
:
' Executes the read operation
:
' Converts into a single precision real
number
MELSEC-Q
11 - 26

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents