Main
Warnings, Cautions, and Notes as Used in this Publication
Warning
Caution
Preface
Content of this Manual
Related Publications
GE Fanuc Micro PLC Users Guide (GFK-0803): contains product specifications,
GE Fanuc Micro PLC Self-Teach Manual
Page
Chapter 2 Programming with the Programming Software 2-1 . . . . . . . . . . . . . . . .
Chapter 3 Programming with a Hand-held Programmer 3-1 . . . . . . . . . . . . . . . . . .
Page
Appendix D Communications Using Windows DDE D-1 . . . . . . . . . . . . . . . . . . . . . . .
Appendix E Data Acquisition, Logging, and Display Program E-1 . . . . . . . . . . . . . .
Chapter 1Programming for the Micro PLC
Programming Basics
Device Designation Memory Location
PLC Programs
Power Flow in a Program
The Micro PLC Instruction Set
1-5
Programming Devices and Formats
Chapter 3 describes programming with a Hand-held Programmer.
Programming with the Programming Software
Programs created with the programming software are in traditional ladder logic format:
Chapter 2 describes programming with the programming software.
Memory Types and Addresses
Memory Map
Non-retentive and Retentive R egisters
* R eserved Registers
Constants and Register V alues in a Program
Special Coils
0.1 Sec Clock (C1018)
Start-up Scan Coil (C1019)
Hold Output Coil (C1021)
Programming for an Analog Expander Unit
Analog Scaling
Analog References
Maximum Values
Programming Examples
Example #1:
Example #2:
2
Chapter 2Programming with the Programming Software
Using the Programming Functions
Programming Operations
" #
2-3
Programming Functions
#
Creating a Program Rung
Running the Programming Software
Running the Programming Software from a Hard Disk
Running the Programming Software Directly from a Diskette
Editing Basics
Horizontal and V ertical Lines in a Rung
Element Labels and Rung Labels
Editing a Completed Rung
Selecting a Rung to Edit
Editing a Rung Element
Deleting a Rung Element
Page
Page
Replacing a Rung Element with a Dissimilar Element
Deleting Rungs
Moving Rungs
Copying Rungs
Searching for a Rung or Program Element
3
Chapter 3Programming with a Hand-held Programmer
Page
Entering Program Logic
Inserting a Rung Element
Deleting a Rung Element, Rung or Program In Memory
Deleting a Rung Element
Searching
3-8 Micro PLC Programmers Guide April 1994
Programming Examples Using the HHP
Example 1
Example 2
Example 3
3-9
Example 4
Example 5
4
Chapter 4The Micro PLC Instruction Set
4-2 Micro PLC Programmers Guide April 1994
Instruction Set Summary
Operation Ladder Symbol Description
4-3
Operation Ladder Symbol Description
Contacts
General Programming Software Instructions for Contacts
Normally-Open Contact
Examples and HHP Instructions
Programming Normally-Open Contact at the Star t of a Rung
Programming a Normally-Open Contact in Series
Programming a Normally-Open Contact in Parallel
Normally-Closed Contact
Programming Normally-Closed Contact at the Star t of a Rung
Programming a Normally-Closed Contact in Series
Programming a Normally-Closed Contact in Parallel
Positive Transition Contact
"
Negative Transition Contact
#
Coils
Using Coil Pairs
General Programming Software Instructions for Coils
Output Coil
Set/Reset Coil Pair
Set Reset
Master Control Relay/End Coil Pair
MCR End
Skip/End Coil Pair
Skip End
Timers
Programming Software Instructions for Timers
On Timer
Off Timer
Counters
Programming Software Instructions for Counters
Up Counter
Down Counter
Math Functions
Addition (ADD)
Maximum Total
Page
Subtraction (SUB)
Page
Multiplication (MUL)
Examples:
Page
Division (DIV)
Examples:
Using Division and Multiplication Functions T ogether
Move Functions
Move
Page
Block Move
Option Example Description
Page
Indirect Move
Specifying a Location in the Pointer Register
!
Page
Compare Functions
Examples
Page
Logic Operations
Word AND
Inclusive OR (IOR)
Exclusive OR (XOR)
Shift Register Right
Entering the Number of Positions to Shift
Shift Register Left
Example
Entering the Number of Positions to Shift
NOT
A
Appendix AUsing Directories
Loading and Saving Files
A
Using the Change Directory Function
The MICRO.CFG File
Hints for a Basic Application
A
Hints for an Advanced Application
B
Appendix BMicro PLC Protocol
Communications Files
Communications Memory T ypes and Addresses
I/O Memory Addresses
*
Special Registers
Communications Parameters
Communications Protocol
Data Format
Read Discretes
Read Analogs
Read Program Memory
Write Discretes
Write Analogs
Write Program Memory
Read Status
Start Program
Stop Program
Error Reply
Communications Functions
Microsoft C (Large Model: Compile w/ -AL Option)
Microsoft C (Small Model: Compile w/ -AS Option)
Turbo C (Large Model: Compile w/ -ml Option)
Turbo C (Small Model: Compile w/ -ms Option)
IBM Compiler BASIC
B-13
Sample Programs
B-14 Micro PLC Programmers Guide Aptil 1994
Sample BASIC Program
C
Appendix CRTU Protocol
Introduction
Message Types
Query
Normal Response
Error Response
Broadcast
Message Fields
Station Address
Function Code
Information Field
Error Check Field
Character Format
Message Termination
Timeout Usage
Cyclic Redundancy Check (CRC)
The Generating Polynomial
Hardware Implementation of CRC-16
Software Calculation of CRC16
Example CRC16 Calculation
C-8 Micro PLC Programmers Guide April 1994
RTU Message Length
Message Length Less CRC Code
Response Message Length Less CRC Code
Message Descriptions
Message (01): Read Output Table
Message (02): Read Input Table
Message (03): Read Registers
Message (04): Read Analog Inputs
Message (05): Force Single Output
Message (06): Preset Single Register
Page
Message (16): Preset Multiple Registers
Message (17): Report Device Type
Communication Errors
Invalid Query Message
Invalid Function Code Error Response (1)
Invalid Address Error Response (2)
Invalid Data Value Error Response (3)
Query Processing Failure Error Response (4)
Serial Link Timeout
Invalid Transactions
D
Appendix DCommunications Using Windows DDE
Limits of the Demonstration Software
Features of the Micro PLC DDE Driver Software
Simple Demonstration using Microsoft Word
Demonstration using Microsoft Excel
Viewing PLC Data in Windows
Viewing PLC Data in another DDE-compliant Application
Writing Values to the PLC from another Application
Ordering Information
E
Appendix EData Acquisition, Logging, and Display Program
Features
Using the Display Software with Micro PLC Net
Overview
Page
Equipment Required
Startup
Invoking DISPLAY
The Display Software Menus
To Create or Execute Auto-polling Screens:
To Manually Poll a Micro PLC:
To Change Data in a Micro PLC:
To Download Registers to a Micro PLC: To Change the Software Screen Colors:
Changing the Screen Colors
Editing Summary
Manual Mode
Data Format
Page
Creating a Bank of Registers for Downloading Data
Writing Data to the Registers
Creating or Editing Autopolling Screens
Naming an Auto-polling Screen File
Specifying an Existing File to Edit
Creating an Auto-polling Screen
Formatting Strings for Auto-polling Screens
Text for Auto-polling Screens
Setup for Data Logging During Auto-Polling
Data Display String Format &XYYYYYZN
Example:
Data Limits Format &L,X,YYYYY,Low_Limit,Hi_limit
Example:
Colors/logtime setup format &#,SC,BC,LT
Example:
System Messages
Creating or Editing System Messages
Specifying the Device to Control System Message Display
Triggering Display of a System Message During Auto-polling Operation
Auto-Polling During System Operation
Executing an Auto-polling Screen
Page
Data Logging
How Data Logging Works
The .LOG File
Renaming the .LOG File to Prevent Overwriting Data
The Format of Logged Data
Time Stamp (Year, Month, Day, Hour, Minutes, Seconds)
Data Type (Table, Reference, Data Value)
Target ID
Error Messages During Operation
F
Appendix FProgramming Applications
Application #1: FLIP / FLOP (Toggle Operation)
Application #2: Power Up One Shot (Startup Protection)
Application #3: Cascading Counters
F-5
Application #4: Industrial Starting Circuit
Page
A
B
C
D
E
L
M
N
O
P
Q
R
S
T
U