LG MASTER-K Series User Manual page 5

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK
4.1 Insertion of the Function Block for Hgh Speed Counter on the GMWIN ............ 4-1
4.2 Local Function Block ................................................................................. 4-2
4.2.1
4.2.2
The specfication of the comparison value ( HSC_CMP) ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
4.2.3
Wrting the operating Information( HSC_WR) ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
4.2.4
Reading the value of the operating status(HSC_RD) ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
4.3 Remote Function Block .............................................................................. 4-6
4.3.1
4.3.2
The specification of the comparison value (HSCR1CMP) ... ... ... ... ... ... ... ... ... ... ... ... ... ...
4.3.3
Writing the operating information (HSCR1WR) ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
4.3.4
Reading the value of the operating status(HSCR1RD) ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
4.4 Error code on the function block.................................................................. 4
5.1 Programming Examples .............................................................................. 5-1
5.1.1
Enabling the counter operation
5.1.2
Preset ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
5.1.3
5.1.4
Setting the magnitude comparison values ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
5.1.5
Reading the current count value ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
5.1.6
5.1.7
5.1.8
5.1.9
Enabling the home latch ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 5-10
5.1.10
5.2 Application Examples .................................................................................
5.2.1
Program for moving the cart ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 5-13
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
4- 2
4- 3
4- 4
4- 5
4- 6
4- 7
4- 8
4- 9
-10
5-2
5-3
5-4
5-5
5-6
5-7
5-8
5-9
5-13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Glofa gm seriesG3f-hscaG4f-hscaG6f-hsca

Table of Contents