Mitsubishi MELSEC-q Programming Manual page 7

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

4.3 Control Syntaxes...................................................................................................................................... 4- 6
4.3.1 Control syntax list .............................................................................................................................. 4- 6
4.3.2 Conditional statements...................................................................................................................... 4- 7
4.3.3 Repeat statement .............................................................................................................................. 4-15
4.3.4 Other control syntaxes ...................................................................................................................... 4-20
4.3.5 Precautions for use of control syntaxes ........................................................................................... 4-22
4.4 Call of Function Block .............................................................................................................................. 4-29
4.5 Comment.................................................................................................................................................. 4-32
How the functions are described ................................................................................................................... 5- 1
5.1 Output ....................................................................................................................................................... 5- 4
5.1.1 Output to device ........................................................................................ OUT_M......................... 5- 4
5.1.2 Low-speed timer ........................................................................................ TIMER_M ..................... 5- 4
5.1.3 High-speed timer ....................................................................................... TIMER_H_M ................ 5- 5
5.1.4 Counter ...................................................................................................... COUNTER_M .............. 5- 5
5.1.5 Set of device .............................................................................................. SET_M ......................... 5- 6
5.1.6 Reset of device .......................................................................................... RST_M ......................... 5- 6
5.1.7 Conversion of direct output into pulse ...................................................... DELTA_M..................... 5- 7
5.2 1-Bit Shift .................................................................................................................................................. 5- 8
5.2.1 1-bit shift of device .................................................................................... SFT_M.......................... 5- 8
5.3 Termination............................................................................................................................................... 5- 9
5.3.1 Stop ............................................................................................................ STOP_M ...................... 5- 9
5.4 Comparison Operation............................................................................................................................. 5-10
5.4.1 Block data comparison (=) ........................................................................ BKCMP_EQ_M............ 5-10
5.4.2 Block data comparison (<>) ...................................................................... BKCMP_NE_M ............ 5-10
5.4.4 Block data comparison (<=) ...................................................................... BKCMP_LE_M............. 5-11
5.4.6 Block data comparison (>=) ...................................................................... BKCMP_GE_M............ 5-12
5.5 Arithmetic Operation ................................................................................................................................ 5-13
5.5.1 Addition of BCD 4-digit data (2 devices) .................................................. BPLUS_M .................... 5-13
5.5.2 Addition of BCD 4-digit data (3 devices) .................................................. BPLUS_3_M ................ 5-13
5.5.3 Subtraction of BCD 4-digit data (2 devices) ............................................. BMINUS_M .................. 5-14
5.5.4 Subtraction of BCD 4-digit data (3 devices) ............................................. BMINUS_3_M .............. 5-14
5.5.5 Addition of BCD 8-digit data (2 devices) .................................................. DBPLUS_M.................. 5-15
5.5.6 Addition of BCD 8-digit data (3 devices) .................................................. DBPLUS_3_M.............. 5-15
5.5.7 Subtraction of BCD 8-digit data (2 devices) ............................................. DBMINUS_M ............... 5-16
5.5.8 Subtraction of BCD 8-digit data (3 devices) ............................................. DBMINUS_3_M ........... 5-16
5.5.9 Multiplication of BCD 4-digit data .............................................................. BMULTI_M ................... 5-17
5.5.10 Division of BCD 4-digit data .................................................................... BDIVID_M .................... 5-17
5.5.11 Multiplication of BCD 8-digit data ........................................................... DBMULTI_M ................ 5-18
5.5.12 Division of BCD 8-digit data .................................................................... DBDIVID_M.................. 5-18
5.5.13 Character string data connection (2 devices) ........................................ STRING_PLUS_M....... 5-19
5.5.14 Character string data connection (3 devices) ........................................ STRING_PLUS_3_M... 5-19
5.5.15 BIN block addition ................................................................................... BKPLUS_M .................. 5-20
5.5.16 BIN block subtraction .............................................................................. BKMINUS_M................ 5-20
A - 5
5- 1 to 5- 114
A - 5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents