Mitsubishi FX2N Instrukcja Użytkownika Strona 76

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 142
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 75
BFM Assignment 7
7-12
FX
2N
-1RM-E-SET Programmable Cam Switch
7.4 Program example
7.4.1 Program example which uses FROM/TO instruction
A program example using FROM/TO instructions is shown below.
In this program, the FX
2N
-1RM is switched to the RUN mode by input to X000 in the PLC main
unit, and switched to the PRG mode by input to X001.
When actual conditions differ from those in the program shown below, change the program to suit
the application accordingly.
<Description>
Data is output to the PLC main unit, each data is read, and commands are written.
(Data and each statuses are read only.)
<Device assignment>
D0: BFM #8 (current angle)
D1: BFM #9 (rotation speed (rpm))
<Program>
M8000
FROM
K0 K10 K4Y0 K3
Outputs the ON/OFF information of BFM #10
to BFM #12 (Y0 to Y57) to Y0 to Y57 of the
programmable controller.
FROM
K0 K8 D0 K2
Reads BFM #8 (current angle) to D0, and
reads BFM #9 (rotation speed) to D1.
FROM
K0 K28 K2M0 K1
Reads BFM #28 (status) to M0 to M7.
TO
K0 K3 K2M10 K1
Writes the command M10 to M17 to BFM #3.
X000
M10
RUN command
X001
M11
PRG command
X002
M13
Error reset
Przeglądanie stron 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 141 142

Komentarze do niniejszej Instrukcji

Brak uwag