summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore6
-rw-r--r--ldmicro/CMakeLists.txt41
-rw-r--r--ldmicro/lang.cpp1
-rw-r--r--ldmicro/obj/helptext.cpp3877
-rw-r--r--ldmicro/obj/lang-tables.h1568
5 files changed, 38 insertions, 5455 deletions
diff --git a/.gitignore b/.gitignore
index 49cfd72..01a2d0d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,7 @@
# exclude all files in build folder
+/.vscode
/ldmicro/build/*
+/ldmicro/obj/*
+!/ldmicro/obj/dummy
/ldmicro/testMain.cpp
-/ldmicro/includes/testMain.h
-/.vscode \ No newline at end of file
+/ldmicro/includes/testMain.h \ No newline at end of file
diff --git a/ldmicro/CMakeLists.txt b/ldmicro/CMakeLists.txt
index 7abcaad..0e5dee5 100644
--- a/ldmicro/CMakeLists.txt
+++ b/ldmicro/CMakeLists.txt
@@ -13,15 +13,18 @@ IF (MSVC)
ENDIF (MSVC)
IF(UNIX)
+ MESSAGE( STATUS "Initializing.." )
add_definitions(-D__UNIX__)
+ add_definitions(-DLDLANG_EN)
+ # set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/build/")
MESSAGE( STATUS "Performing system check.." )
MESSAGE( STATUS "Identifing bitness of the platform.." )
- add_definitions(-D__UNIX32)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D__UNIX64)
MESSAGE( STATUS "Bitness of the platform: " 64)
else()
+ add_definitions(-D__UNIX32)
MESSAGE( STATUS "Bitness of the platform: " 36)
endif()
MESSAGE( STATUS "Performing system check - done" )
@@ -30,6 +33,29 @@ IF(UNIX)
find_package (PkgConfig REQUIRED)
pkg_check_modules (GTK3 REQUIRED gtk+-3.0)
+ ## Set object dir
+ set(OBJDIR ${CMAKE_CURRENT_SOURCE_DIR}/obj)
+
+ ## Set perl scripts to be run before build to generate files needed
+ MESSAGE( STATUS "Adding perl scripts to build.." )
+
+ add_custom_command(
+ OUTPUT ${OBJDIR}/lang-tables.h
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/lang-tables.pl > ${OBJDIR}/lang-tables.h
+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/lang-*.txt")
+
+ add_custom_command(
+ OUTPUT ${OBJDIR}/helptext.cpp
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ COMMAND perl txt2c.pl > ${OBJDIR}/helptext.cpp
+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/manual*.txt")
+
+ set(SCRIPT_GENERATED_FILES ${OBJDIR}/helptext.cpp
+ ${OBJDIR}/lang-tables.h)
+
+ add_custom_target(LDMicro_SCRIPT_GENERATED_FILES DEPENDS ${SCRIPT_GENERATED_FILES})
+
## Version control
set (LDMicro_VERSION_MAJOR 1)
set (LDMicro_VERSION_MINOR 0)
@@ -39,12 +65,13 @@ IF(UNIX)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/lib/linuxUI")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/lib/freezeLD")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/includes")
+ # include_directories("${OBJDIR}")
set(PROJECT_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/includes")
CONFIGURE_FILE (
"${PROJECT_INCLUDE_DIR}/ldmicroVC.h.in"
"${PROJECT_INCLUDE_DIR}/ldmicroVC.h"
)
- MESSAGE ( STATUS " PROJECT_INCLUDE_DIR: " ${PROJECT_INCLUDE_DIR} )
+ # MESSAGE ( STATUS " PROJECT_INCLUDE_DIR: " ${PROJECT_INCLUDE_DIR} )
## Add GTK3 include files if GTK3 is found
IF ( GTK3_FOUND )
@@ -52,8 +79,8 @@ IF(UNIX)
link_directories (${GTK3_LIBRARY_DIRS})
add_definitions (${GTK3_CFLAGS_OTHER})
link_libraries (${GTK3_LIBRARIES})
- MESSAGE ( STATUS " GTK3_INCLUDE_DIR: " ${GTK3_INCLUDE_DIRS} )
- MESSAGE ( STATUS " GTK3_LIBRARIES: " ${GTK3_LIBRARIES} )
+ # MESSAGE( STATUS " GTK3_INCLUDE_DIR: " ${GTK3_INCLUDE_DIRS} )
+ # MESSAGE( STATUS " GTK3_LIBRARIES: " ${GTK3_LIBRARIES} )
ENDIF ( GTK3_FOUND )
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/lib/linuxUI")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/lib/freezeLD")
@@ -84,14 +111,14 @@ IF(UNIX)
draw_outputdev.cpp
draw.cpp
schematic.cpp
+ ${OBJDIR}/helptext.cpp
helpdialog.cpp
maincontrols.cpp
ldmicro.cpp)
add_executable (LDMicro ${COMPILE_CPP_SOURCES})
+ add_dependencies(LDMicro LDMicro_SCRIPT_GENERATED_FILES)
install (TARGETS LDMicro DESTINATION bin)
target_link_libraries (LDMicro LinuxUI)
target_link_libraries (LDMicro FreezeLD)
- #add_executable (testMain testMain.cpp)
- #install (TARGETS testMain DESTINATION bin)
-ENDIF(UNIX)
+ENDIF(UNIX) \ No newline at end of file
diff --git a/ldmicro/lang.cpp b/ldmicro/lang.cpp
index 83f9036..084c766 100644
--- a/ldmicro/lang.cpp
+++ b/ldmicro/lang.cpp
@@ -43,7 +43,6 @@ typedef struct LangTag {
// These are the actual translation tables, so should be included in just
// one place.
#include "obj/lang-tables.h"
-#define LDLANG_EN
char *_(char *in)
{
diff --git a/ldmicro/obj/helptext.cpp b/ldmicro/obj/helptext.cpp
deleted file mode 100644
index 16d60fd..0000000
--- a/ldmicro/obj/helptext.cpp
+++ /dev/null
@@ -1,3877 +0,0 @@
-// generated by txt2c.pl from
-#include <stdlib.h>
-#ifdef LDLANG_DE
-char *HelpTextDe[] = {
- "",
- "EINFÜHRUNG",
- "===========",
- "",
- "LDmicro erzeugt einen systemspezifischen Code für einige Microchip PIC16",
- "und Atmel AVR Mikroprozessoren. Üblicherweise wird die Software für diese",
- "Prozessoren in Programmsprachen, wie Assembler, C oder BASIC geschrieben.",
- "Ein Programm, welches in einer dieser Sprachen abgefasst ist, enthält",
- "eine Anweisungsliste. Auch sind die diese Sprachen sehr leistungsfähig",
- "und besonders gut geeignet für die Architektur dieser Prozessoren,",
- "welche diese Anweisungsliste intern abarbeiten.",
- "",
- "Programme für speicherprogrammierbare Steuerungen (SPS) andererseits,",
- "werden oftmals im Kontaktplan (KOP = ladder logic) geschrieben.",
- "Ein einfaches Programm, könnte wie folgt aussehen:",
- "",
- " || ||",
- " || Xbutton1 Tdon Rchatter Yred ||",
- " 1 ||-------]/[---------[TON 1.000 s]-+-------]/[--------------( )-------||",
- " || | ||",
- " || Xbutton2 Tdof | ||",
- " ||-------]/[---------[TOF 2.000 s]-+ ||",
- " || ||",
- " || ||",
- " || ||",
- " || Rchatter Ton Tneu Rchatter ||",
- " 2 ||-------]/[---------[TON 1.000 s]----[TOF 1.000 s]---------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " ||------[END]---------------------------------------------------------||",
- " || ||",
- " || ||",
- "",
- " (TON ist eine Anzugsverzögerung, TOF eine Abfallverzögerung.",
- " Die --] [-- Anweisungen bedeuten Eingänge, die sich ähnlich, wie Relais-",
- " kontakte verhalten. Die --( )-- Anweisungen bedeuten Ausgänge, die sich",
- " ähnlich, wie Relaisspulen verhalten. Viele gute Bezugsquellen werden für",
- " KOP im Internet oder sonst wo angeboten; Einzelheiten zu dieser speziellen",
- " Ausführung werden weiter unten angegeben.)",
- "",
- "Einige Unterschiede sind jedoch offensichtlich:",
- "",
- "* Das Programm wird in einem grafischen Format dargestellt",
- " und nicht mit einer aus Anweisungen bestehenden Textliste. Viele",
- " Anwender werden dies zunächst als besser verständlich auffassen.",
- "",
- "* Diese Programme erscheinen wie einfachste Schaltpläne, mit",
- " Relaiskontakten (Eingängen) and Spulen (Ausgängen). Dies ist recht",
- " intuitiv für Programmierer, die über Kenntnisse der Theorie von",
- " Elektroschaltplänen verfügen.",
- "",
- "* Der ‘ladder logic compiler’ übernimmt was wo berechnet wird.",
- " Es ist nicht notwendig einen Code zu schreiben, um zu errechnen, wann",
- " der Status (Zustand) der Ausgänge neu bestimmt werden muss, z.B. auf",
- " Grund einer Änderung eines Eingangs oder Timers. Auch braucht man die",
- " Reihenfolge der Berechnungen nicht anzugeben; die SPS-Hilfsprogramme",
- " übernehmen dies.",
- "",
- "LDmicro kompiliert ‘ladder logic’ (KOP) in PIC16- oder AVR-Code.",
- "Die folgenden Prozessoren werden unterstützt:",
- "",
- " * PIC16F877",
- " * PIC16F628",
- " * PIC16F876 (ungetestet)",
- " * PIC16F88 (ungetestet)",
- " * PIC16F819 (ungetestet)",
- " * PIC16F887 (ungetestet)",
- " * PIC16F886 (ungetestet)",
- " * ATmega8 (ungetestet)",
- " * ATmega16 (ungetestet)",
- " * ATmega32 (ungetestet)",
- " * ATmega128",
- " * ATmega64",
- " * ATmega162 (ungetestet)",
- "",
- "Es wäre einfach noch weitere AVR- oder PIC16-Prozessoren zu unterstützen,",
- "aber ich habe keine Möglichkeit diese zu testen. Falls Sie einen",
- "bestimmten benötigen, so nehmen Sie Kontakt mit mir auf und ich werde",
- "sehen, was ich tun kann.",
- "",
- "Mit LDmicro können Sie ein Kontaktplan-Programm zeichnen bzw. entwickeln.",
- "Auch können Sie dies in Realzeit mit Ihrem Computer simulieren. Wenn",
- "Sie dann überzeugt sind, dass Ihr Programm korrekt ist, so können",
- "Sie die Pins, entsprechend dem Programm als Ein- oder Ausgänge, dem",
- "Mikroprozessor zuweisen. Nach der Zuweisung der Pins können Sie den PIC-",
- "oder AVR-Code für Ihr Programm kompilieren. Der Compiler erzeugt eine",
- "Hex-Datei, mit dem Sie dann Ihren Mikroprozessor programmieren. Dies",
- "ist mit jedem PIC/AVR-Programmer möglich.",
- "",
- "LDmicro wurde entworfen, um in etwa mit den meisten kommerziellen",
- "SPS-Systemen ähnlich zu sein. Es gibt einige Ausnahmen und viele Dinge",
- "sind ohnehin kein Standard in der Industrie. Lesen Sie aufmerksam die",
- "Beschreibung jeder Anweisung, auch wenn Ihnen diese vertraut erscheint.",
- "Dieses Dokument setzt ein Grundwissen an Kontaktplan-Programmierung",
- "und der Struktur von SPS-Software voraus (wie: der Ausführungszyklus,",
- "Eingänge lesen, rechnen und Ausgänge setzen).",
- "",
- "",
- "WEITERE ZIELE",
- "=============",
- "",
- "Es ist auch möglich einen ANSI C - Code zu erzeugen. Diesen können",
- "Sie dann für jeden Prozessor verwenden, für den Sie einen C-Compiler",
- "besitzen. Sie sind dann aber selbst verantwortlich, den Ablauf zu",
- "bestimmen. Das heißt, LDmicro erzeugt nur ein Stammprogramm für einen",
- "Funktions- SPS-Zyklus. Sie müssen den SPS-Zyklus bei jedem Durchlauf",
- "aufrufen und auch die Ausführung (Implementierung) der E/A-Funktionen,",
- "die der SPS-Zyklus abruft (wie: lesen/schreiben, digitaler Eingang usw.).",
- "Für mehr Einzelheiten: Siehe die Kommentare in dem erzeugten Quellcode.",
- "",
- "Ganz zuletzt kann LDmicro auch für eine virtuelle Maschine einen",
- "prozessor-unabhängigen Byte-Code erzeugen, welche mit der KOP-Kodierung",
- "(ladder logic) laufen soll. Ich habe eine Beispiel-Anwendung des",
- "VM/Interpreters vorgesehen, in ziemlich gutem C geschrieben. Dieses",
- "Anwendungsziel wird halbwegs auf jeder Plattform funktionieren, so lange",
- "Sie Ihre eigene VM vorsehen. Dies könnte für solche Anwendungen nützlich",
- "sein, für die Sie KOP (ladder logic) als Datentransfer-Sprache verwenden",
- "möchten, um ein größeres Programm anzupassen. Für weitere Einzelheiten:",
- "Siehe die Kommentare in dem Beispiel-Interpreter.",
- "",
- "",
- "OPTIONEN DER BEFEHLSZEILEN ",
- "==========================",
- "",
- "ldmicro.exe läuft normalerweise ohne eine Befehlszeilen-Option.",
- "Das heißt, dass Sie nur ein Tastenkürzel zu dem Programm benötigen",
- "oder es auf dem Desktop abspeichern und dann auf das Symbol (die Ikone)",
- "doppelklicken, um es laufen zu lassen. Danach können Sie alles ausführen,",
- "was das GUI (Graphical User Interface) zulässt.",
- "",
- "Wenn man an LDmicro einen alleinstehenden Dateinamen in der Befehlszeile",
- "vergeben hat (z. B. ‘ldmicro.exe asd.ld’), wird LDmicro versuchen ‘asd.ld’",
- "zu öffnen, falls diese existiert. Dies bedeutet, dass man ldmicro.exe",
- "mit .ld Dateien verbinden kann, sodass dies automatisch abläuft, wenn",
- "man auf eine .ld Datei doppelklickt.",
- "",
- "Wenn man an LDmicro das Argument in der Befehlszeile in folgender Form",
- "vergeben hat: ‘ldmicro.exe /c src.ld dest.hex’, so wird es versuchen",
- "‘src.ld’ zu kompilieren und unter ‘dest.hex’ abzuspeichern. LDmicro endet",
- "nach dem Kompilieren, unabhängig davon, ob die Kompilierung erfolgreich",
- "war oder nicht. Alle Meldungen werden auf der Konsole ausgegeben. Dieser",
- "Modus ist hilfreich, wenn man LDmicro von der Befehlszeile laufen",
- "aus lässt.",
- "",
- "",
- "GRUNDLAGEN",
- "==========",
- "",
- "Wenn Sie LDmicro ohne Argumente aufrufen, so beginnt es als ein leeres",
- "Programm. Wenn Sie LDmicro mit dem Namen eines ‘ladder’ (KOP)-Programms",
- "(z.B. xxx.ld) in der Befehlszeile öffnen, dann wird es versuchen dieses",
- "Programm am Anfang zu laden.",
- "",
- "LDmicro verwendet sein eigenes internes Format für das Programm und",
- "man kann kein logisches Zeichen aus einem anderen (Fremd-)Programm",
- "importieren.",
- "",
- "Falls Sie nicht ein schon vorhandenes Programm laden, dann wird Ihnen",
- "ein Programm mit einem leeren Netzwerk geliefert. In dieses können Sie",
- "einen Befehl einfügen; z. B. könnten Sie auch eine Reihe von Kontakten",
- "einfügen (Anweisung -> Kontakte Einfügen), die zunächst mit ‘Xneu’",
- "bezeichnet werden. ‘X’ bedeutet, dass der Kontakt auf einen Eingang",
- "des Mikroprozessors festgelegt ist. Diesen Pin können Sie später zuweisen,",
- "nachdem Sie den Mikroprozessor gewählt haben und die Kontakte",
- "umbenannt haben. Der erste Buchstabe zeigt an, um welche Art Objekt es",
- "sich handelt. Zum Beispiel:",
- "",
- " * XName -- Auf einen Eingang des Mikroprozessors festgelegt",
- " * YName -- Auf einen Ausgang des Mikroprozessors festgelegt",
- " * RName -- Merker: Ein Bit im Speicher (Internes Relais)",
- " * TName -- Ein Timer; Anzugs- oder Abfallverzögerung",
- " * CName -- Ein Zähler, Aufwärts- oder Abwärtszähler",
- " * AName -- Eine Ganzzahl, von einem A/D-Wandler eingelesen",
- " * Name -- Eine Allzweck-Variable als Ganzzahl",
- "",
- "Wählen Sie den Rest des Namens, sodass dieser beschreibt, was das Objekt",
- "bewirkt und das dieser auch einmalig im Programm ist. Der gleiche Name",
- "bezieht sich immer auf das gleiche Objekt im Programm. Es wäre zum",
- "Beispiel falsch eine Anzugsverzögerung (TON) ‘TVerzög’ zu nennen und im",
- "selben Programm eine Abfallverzögerung ‘TVerzög’ (TOF), weil jeder Zähler",
- "(oder Timer) seinen eigenen Speicher benötigt. Andererseits wäre es",
- "korrekt einen „Speichernden Timer“ (RTO) ‘TVerzög’ zu nennen und eine",
- "entsprechende Rücksetz-Anweisung (RES) = ‘TVerzög’, weil in diesem",
- "Fall beide Befehle dem gleichen Timer gelten.",
- "",
- "Die Namen von Variablen können aus Buchstaben, Zahlen und Unter-",
- "strichen (_) bestehen. Der Name einer Variablen darf nicht mit einer",
- "Nummer beginnen. Die Namen von Variablen sind fallabhängig.",
- "",
- "Ein Befehl für eine gewöhnliche Variable (MOV, ADD, EQU, usw.), kann",
- "mit Variablen mit jedem Namen arbeiten. Das bedeutet, dass diese Zugang",
- "zu den Timer- und Zähler-Akkumulatoren haben. Das kann manchmal recht",
- "hilfreich sein; zum Beispiel kann man damit prüfen, ob die Zählung eines",
- "Timers in einem bestimmten Bereich liegt.",
- "",
- "Die Variablen sind immer 16-Bit Ganzzahlen. Das heißt sie können von",
- "-32768 bis 32767 reichen. Die Variablen werden immer als vorzeichen-",
- "behaftet behandelt. Sie können auch Buchstaben als Dezimalzahlen festlegen",
- "(0, 1234, -56). Auch können Sie ASCII-Zeichenwerte (‘A’, ‘z’) festlegen,",
- "indem Sie die Zeichen in „Auslassungszeichen“ einfügen. Sie können",
- "ein ASCII-Zeichen an den meisten Stellen verwenden, an denen Sie eine",
- "Dezimalzahl verwenden können.",
- "",
- "Am unteren Ende der Maske (Bildanzeige) sehen Sie eine Liste aller",
- "Objekte (Anweisungen, Befehle) des Programms. Diese Liste wird vom",
- "Programm automatisch erzeugt; es besteht somit keine Notwendigkeit diese",
- "von Hand auf dem Laufenden zu halten. Die meisten Objekte benötigen",
- "keine Konfiguration. ‘XName’, ‘YName’, und ‘AName’ Objekte allerdings,",
- "müssen einem Pin des Mikroprozessors zugeordnet werden. Wählen Sie zuerst",
- "welcher Prozessor verwendet wird (Voreinstellungen -> Prozessor). Danach",
- "legen Sie Ihre E/A Pins fest, indem Sie in der Liste auf diese jeweils",
- "doppelklicken.",
- "",
- "Sie können das Programm verändern, indem Sie Anweisungen (Befehle)",
- "einfügen oder löschen. Die Schreibmarke (cursor)im Programm blinkt,",
- "um die momentan gewählte Anweisung und den Einfügungspunkt anzuzeigen.",
- "Falls diese nicht blinkt, so drücken Sie den <Tabulator> oder klicken",
- "Sie auf eine Anweisung. Jetzt können Sie die momentane Anweisung löschen",
- "oder eine neue Anweisung einfügen; links oder rechts (in Reihenschaltung)",
- "oder über oder unter (in Parallelschaltung) mit der gewählten Anweisung.",
- "Einige Handhabungen sind nicht erlaubt, so zum Beispiel weitere",
- "Anweisungen rechts von einer Spule.",
- "",
- "Das Programm beginnt mit nur einem Netzwerk. Sie können mehr Netzwerke",
- "hinzufügen, indem Sie ‘Netzwerk Einfügen Davor/Danach’ im Programm-Menü",
- "wählen. Den gleichen Effekt könnten Sie erzielen, indem Sie viele",
- "komplizierte parallele Unterschaltungen in einem einzigen Netzwerk",
- "unterbringen. Es ist aber übersichtlicher, mehrere Netzwerke zu verwenden.",
- "",
- "Wenn Sie Ihr Programm fertig geschrieben haben, so können Sie dieses",
- "mit der Simulation testen. Danach können Sie es in eine Hex-Datei für",
- "den zugedachten Mikroprozessor kompilieren.",
- "",
- "",
- "SIMULATION",
- "==========",
- "",
- "Um den Simulationsbetrieb einzugeben, wählen Sie ‘Simulieren ->",
- "Simulationsbetrieb’ oder drücken Sie <Strg+M>. Das Programm wird",
- "im Simulationsbetrieb unterschiedlich dargestellt. Es gibt keine",
- "Schreibmarke (cursor) mehr. Die „erregten“ Anweisungen erscheinen hellrot,",
- "die „nicht erregten“ erscheinen grau. Drücken Sie die Leertaste, um das",
- "SPS-Programm nur einen einzelnen Zyklus durchlaufen zu lassen. Wählen",
- "Sie für einen kontinuierlichen Umlauf in Echtzeit ‘Simulieren -> Start",
- "Echtzeit-Simulation’ oder drücken Sie <Strg+R>. Die Maske (Bildanzeige)",
- "des Programms wird jetzt in Echtzeit, entsprechend der Änderungen des",
- "Status (des Zustands) des Programms aktualisiert.",
- "",
- "Sie können den Status (Zustand) eines Eingangs im Programm einstellen,",
- "indem Sie auf den jeweiligen auf der Liste am unteren Ende der",
- "Maske (Bildanzeige) doppelklicken oder auf die jeweilige ‘XName’",
- "Kontakt-Anweisung im Programm. Wenn Sie den Status (Zustand) eines",
- "Eingangs-Pins ändern, so wird diese Änderung nicht unmittelbar in",
- "der Maske (Bildanzeige) wiedergegeben, sondern erst wenn sich die",
- "SPS im zyklischen Umlauf befindet. Das geschieht automatisch wenn das",
- "SPS-Programm in Echtzeit-Simulation läuft, oder wenn Sie die Leertaste",
- "drücken.",
- "",
- "",
- "KOMPILIEREN ZUM SYSTEMSPEZIFISCHEN CODE",
- "=======================================",
- "",
- "Letztlich ist es dann nur sinnvoll eine .hex Datei zu erzeugen, mit",
- "der Sie Ihren Mikroprozessor programmieren können. Zunächst müssen",
- "Sie die Teilenummer des Mikroprozessors im Menü ‘Voreinstellungen ->",
- "Prozessor’ wählen. Danach müssen jedem ‘XName’ oder ‘YName’ Objekt",
- "einen E/A-Pin zuweisen. Tun Sie dies, indem auf den Namen des Objekts",
- "doppelklicken, welcher sich in der Liste ganz unten in der Maske",
- "(Bildanzeige) befindet. Ein Dialogfenster wird dann erscheinen und Sie",
- "können daraufhin einen noch nicht vergebenen Pin von der Liste aussuchen.",
- "",
- "Als nächstes müssen Sie die Zykluszeit wählen, mit der Sie das",
- "Programm laufen lassen wollen, auch müssen Sie dem Compiler mitteilen",
- "mit welcher Taktgeschwindigkeit der Prozessor arbeiten soll. Diese",
- "Einstellungen werden im Menü ‘Voreinstellungen -> Prozessor Parameter...’",
- "vorgenommen. Üblicherweise sollten Sie die Zykluszeit nicht ändern,",
- "denn diese ist auf 10ms voreingestellt, dies ist ein guter Wert für",
- "die meisten Anwendungen. Tippen Sie die Frequenz des Quarzes (oder des",
- "Keramik-Resonators) ein, mit der Sie den Prozessor betreiben wollen und",
- "klicken auf Okay.",
- "",
- "Jetzt können Sie einen Code von Ihrem Programm erzeugen. Wählen Sie",
- "‘Kompilieren -> Kompilieren’ oder ‘Kompilieren -> Kompilieren unter...’,",
- "falls Sie vorher Ihr Programm schon kompiliert haben und einen neuen Namen",
- "für die Ausgangsdatei vergeben wollen. Wenn Ihr Programm fehlerfrei ist,",
- "wird LDmicro eine Intel IHEX Datei erzeugen, mit der sich Ihr Prozessor",
- "programmieren lässt.",
- "",
- "Verwenden Sie hierzu irgendeine Programmier Soft- und Hardware, die Sie",
- "besitzen, um die Hex-Datei in den Mikroprozessor zu laden. Beachten Sie",
- "die Einstellungen für die Konfigurationsbits (fuses)! Bei den PIC16",
- "Prozessoren sind diese Konfigurationsbits bereits in der Hex-Datei",
- "enthalten. Die meisten Programmiersoftwares schauen automatisch nach",
- "diesen. Für die AVR-Prozessoren müssen Sie die Konfigurationsbits von",
- "Hand einstellen.",
- "",
- "",
- "ANWEISUNGS-VERZEICHNIS",
- "======================",
- "",
- "> KONTAKT, SCHLIESSER XName RName YName",
- " ----] [---- ----] [---- ----] [----",
- "",
- "Wenn ein ‘unwahres’ Signal diese Anweisung erreicht, so ist das",
- "Ausgangssignal ‘unwahr’. Wenn ein ‘wahres’ Signal diese Anweisung",
- "erreicht, so ist das Ausgangssignal ‘wahr’. Dies nur, falls der",
- "vorliegende Eingangspin, Ausgangspin oder eines Merkers (Hilfsrelais)",
- "‘wahr’ ist, anderenfalls ist es unwahr. Diese Anweisung fragt den Status",
- "(Zustand) eines Eingangspins, Ausgangspins oder Merkers (Hilfsrelais) ab.",
- "",
- "",
- "> KONTAKT, ÖFFNER XName RName YName",
- " ----]/[---- ----]/[---- ----]/[----",
- "",
- "Wenn ein ‘unwahres’ Signal diese Anweisung erreicht, so ist das",
- "Ausgangssignal ‘unwahr’. Wenn ein ‘wahres’ Signal diese Anweisung",
- "erreicht, so ist das Ausgangssignal ‘wahr’. Dies nur, falls der",
- "vorliegende Eingangspin, Ausgangspin oder der Merker (= internes",
- "Hilfsrelais) ‘unwahr’ ist, anderenfalls ist es ‘unwahr’. Diese Anweisung",
- "fragt den Status (Zustand) eines Eingangspins, Ausgangspins oder Merkers",
- "(Hilfsrelais) ab. Dies ist das Gegenteil eines Schließers.",
- "",
- "",
- "> SPULE, NORMAL (MERKER,AUSGANG) RName YName",
- " ----( )---- ----( )----",
- "",
- "Wenn ein ‘unwahres’ Signal diese Anweisung erreicht, so wird der",
- "vorliegende Merker (Hilfsrelais) oder Ausgangspin nicht angesteuert. Wenn",
- "ein ‘wahres’ Signal diese Anweisung erreicht, so wird der vorliegende",
- "Merker (Hilfsrelais) oder Ausgangspin angesteuert. Es ist nicht sinnvoll",
- "dieser Spule eine Eingangsvariable zuzuweisen. Diese Anweisung muss",
- "ganz rechts im Netzwerk stehen.",
- "",
- "",
- "> SPULE, NEGIERT (MERKER,AUSGANG) RName YName",
- " ----(/)---- ----(/)----",
- "",
- "Wenn ein ‘wahres’ Signal diese Anweisung erreicht, so wird der vorliegende",
- "Merker (Hilfsrelais)oder Ausgangspin nicht angesteuert. Wenn ein",
- "‘unwahres’ Signal diese Anweisung erreicht, so wird der vorliegende Merker",
- "(Hilfsrelais) oder Ausgangspin angesteuert. Es ist nicht sinnvoll dieser",
- "Spule eine Eingangsvariable zuzuweisen. Dies ist das Gegenteil einer",
- "normalen Spule. Diese Anweisung muss im Netzwerk ganz rechts stehen.",
- "",
- "",
- "> SPULE, SETZEN RName YName",
- " ----(S)---- ----(S)----",
- "",
- "Wenn ein ‘wahres’ Signal diese Anweisung erreicht, so wird der vorliegende",
- "Merker (Hilfsrelais)oder Ausgangspin auf ‘wahr’ gesetzt. Anderenfalls",
- "bleibt der Status (Zustand) des Merkers (Hilfsrelais) oder Ausgangspins",
- "unverändert. Diese Anweisung kann nur den Status (Zustand) einer Spule",
- "von ‘unwahr’ nach ‘wahr’ verändern, insofern wird diese üblicherweise in",
- "einer Kombination mit einer Rücksetz-Anweisung für eine Spule verwendet.",
- "Diese Anweisung muss ganz rechts im Netzwerk stehen.",
- "",
- "",
- "> SPULE, RÜCKSETZEN RName YName",
- " ----(R)---- ----(R)----",
- "",
- "Wenn ein ‘wahres’ Signal diese Anweisung erreicht, so wird der vorliegende",
- "Merker (Hilfsrelais) oder Ausgangspin rückgesetzt. Anderenfalls bleibt der",
- "Status (Zustand) des Merkers (Hilfsrelais) oder Ausgangspins unverändert.",
- "Diese Anweisung kann nur den Status (Zustand) einer Spule von ‘wahr’ nach",
- "‘unwahr’ verändern, insofern wird diese üblicherweise in einer Kombination",
- "mit einer Setz-Anweisung für eine Spule verwendet. Diese Anweisung muss",
- "ganz rechts im Netzwerk stehen.",
- "",
- "",
- "> ANZUGSVERZÖGERUNG Tdon",
- " -[TON 1.000 s]-",
- "",
- "Wenn ein Signal diese Anweisung erreicht, welches seinen Status",
- "(Zustand) von ‘unwahr’ nach ‘wahr’ ändert, so bleibt das Ausgangssignal",
- "für 1,000 s ‘unwahr’, dann wird es ‘wahr’. Wenn ein Signal diese",
- "Anweisung erreicht, welches seinen Status (Zustand) von ‘wahr’ nach",
- "‘unwahr’ ändert, so wird das Ausgangssignal sofort ‘unwahr’. Der Timer",
- "wird jedes Mal rückgesetzt (bzw. auf Null gesetzt), wenn der Eingang",
- "‘unwahr’ wird. Der Eingang muss für 1000 aufeinanderfolgende Millisekunden",
- "‘wahr’ bleiben, bevor auch der Ausgang ‘wahr’ wird. Die Verzögerung",
- "ist konfigurierbar.",
- "",
- "Die ‘TName’ Variable zählt, in der Einheit der jeweiligen Zykluszeit,",
- "von Null ab hoch. Der Ausgang der TON-Anweisung wird wahr, wenn die",
- "Zählervariable größer oder gleich der vorliegenden Verzögerung ist.",
- "Es möglich die Zählervariable an einer anderen Stelle im Programm zu",
- "bearbeiten, zum Beispiel mit einer TRANSFER-Anweisung (MOV).",
- "",
- "",
- "> ABFALLVERZÖGERUNG Tdoff",
- " -[TOF 1.000 s]-",
- "",
- "Wenn ein Signal diese Anweisung erreicht, welches seinen Status",
- "(Zustand) von ‘wahr’ nach ‘unwahr’ ändert, so bleibt das Ausgangssignal",
- "für 1,000 s ‘wahr’, dann wird es ‘unwahr’. Wenn ein Signal diese",
- "Anweisung erreicht, welches seinen Status (Zustand) von ‘unwahr’ nach",
- "‘wahr’ ändert, so wird das Ausgangssignal sofort ‘wahr’. Der Timer wird",
- "jedes Mal rückgesetzt (bzw. auf Null gesetzt), wenn der Eingang ‘unwahr’",
- "wird. Der Eingang muss für 1000 aufeinanderfolgende Millisekunden ‘unwahr’",
- "bleiben, bevor auch der Ausgang ‘unwahr’ wird. Die Verzögerung ist",
- "konfigurierbar.",
- "",
- "Die ‘TName’ Variable zählt, in der Einheit der jeweiligen Zykluszeit,",
- "von Null ab hoch. Der Ausgang der TOF Anweisung wird wahr, wenn die",
- "Zählervariable größer oder gleich der vorliegenden Verzögerung ist.",
- "Es möglich die Zählervariable an einer anderen Stelle im Programm zu",
- "bearbeiten, zum Beispiel mit einer TRANSFER-Anweisung (MOV).",
- "",
- "",
- "> SPEICHERNDER TIMER Trto",
- " -[RTO 1.000 s]-",
- "",
- "Diese Anweisung zeichnet auf, wie lange sein Eingang ‘wahr’ gewesen",
- "ist. Wenn der Eingang für mindestens 1.000 s ‘wahr’ gewesen ist, dann",
- "wird der Ausgang ‘wahr’. Andernfalls ist er ‘unwahr’. Der Eingang muss",
- "für 1000 aufeinanderfolgende Millisekunden ‘wahr’ gewesen sein; wenn",
- "der Eingang für 0,6 s ‘wahr’ war, dann ‘unwahr’ für 2,0 s und danach für",
- "0,4 s wieder ‘wahr’, so wird sein Ausgang ‘wahr’. Nachdem der Ausgang",
- "‘wahr’ wurde, so bleibt er ‘wahr’, selbst wenn der Eingang ‘unwahr’",
- "wird, so lange der Eingang für länger als 1.000 s ‘wahr’ gewesen ist.",
- "Der Timer muss deshalb von Hand mit Hilfe der Rücksetz-Anweisung",
- "rückgesetzt (auf Null gesetzt) werden.",
- "",
- "Die ‘TName’ Variable zählt, in der Einheit der jeweiligen Zykluszeit,",
- "von Null ab hoch. Der Ausgang der RTO-Anweisung wird wahr, wenn die",
- "Zählervariable größer oder gleich der vorliegenden Verzögerung ist.",
- "Es möglich die Zählervariable an einer anderen Stelle im Programm zu",
- "bearbeiten, zum Beispiel mit einer TRANSFER-Anweisung (MOV).",
- "",
- "",
- "> RÜCKSETZEN Trto Citems",
- " ----{RES}---- ----{RES}----",
- "",
- "Diese Anweisung rücksetzt einen Timer oder Zähler. TON oder TOF Timer",
- "werden automatisch rückgesetzt, wenn ihr Eingang ‘wahr’ oder ‘unwahr’",
- "wird, somit ist die RES-Anweisung für diese Timer nicht erforderlich. RTO",
- "Timer und CTU/CTD Zähler werden nicht automatisch rückgesetzt, somit",
- "müssen diese von Hand mit Hilfe der RES-Anweisung rückgesetzt (auf Null)",
- "werden. Wenn der Eingang ‘wahr’ ist, so wird der Timer oder Zähler",
- "rückgesetzt; wenn der Eingang ‘unwahr’ ist, so erfolgt keine Aktion.",
- "Diese Anweisung muss ganz rechts im Netzwerk stehen.",
- "",
- " _",
- "> ONE-SHOT RISING, STEIGENDE FLANKE --[OSR_/ ]--",
- "",
- "Diese Anweisung wird normalerweise ‘unwahr’ ausgewiesen. Wenn der Eingang",
- "der Anweisung während des momentanen Zyklus ‘wahr’ ist und während des",
- "vorgehenden ‘unwahr’ war, so wird der Ausgang ‘wahr’. Daher erzeugt diese",
- "Anweisung bei jeder steigenden Flanke einen Impuls für einen Zyklus.",
- "Diese Anweisung ist hilfreich, wenn Sie Ereignisse an der steigenden",
- "Flanke eines Signals auslösen wollen.",
- "",
- " _",
- "> ONE-SHOT FALLING, FALLENDE FLANKE --[OSF \\_ ]--",
- "",
- "Diese Anweisung wird normalerweise ‘unwahr’ ausgewiesen. Wenn der Eingang",
- "der Anweisung während des momentanen Zyklus ‘unwahr’ ist und während des",
- "vorgehenden ‘wahr’ war, so wird der Ausgang ‘wahr’. Daher erzeugt diese",
- "Anweisung bei jeder fallenden Flanke einen Impuls für einen Zyklus.",
- "Diese Anweisung ist hilfreich, wenn Sie Ereignisse an der fallenden",
- "Flanke eines Signals auslösen wollen.",
- "",
- "",
- "> BRÜCKE, ÖFFNUNG ----+----+---- ----+ +----",
- "",
- "Der Eingangszustand einer Brücke ist immer gleich seinem Ausgangszustand.",
- "Der Ausgangszustands einer Öffnung ist immer ‘unwahr’. Diese Anweisungen",
- "sind bei der Fehlerbehebung (debugging) besonders hilfreich.",
- "",
- "",
- "> MASTER CONTROL RELAIS -{MASTER RLY}-",
- "",
- "",
- "Im Normalfall ist der Anfang (die linke Stromschiene) von jedem Netzwerk",
- "‘wahr’. Wenn eine ‘Master Control Relais’ Anweisung ausgeführt wird dessen",
- "Eingang ‘unwahr’ ist, so werden die Anfänge (die linke Stromschiene)",
- "aller folgenden Netzwerke ‘unwahr’. Das setzt sich fort bis die nächste",
- "‘Master Control Relais’ Anweisung erreicht wird (unabhängig von dem",
- "Anfangszustand dieser Anweisung). Diese Anweisungen müssen daher als Paar",
- "verwendet werden: Eine (vielleicht abhängige), um den „gegebenenfalls",
- "gesperrten“ Abschnitt zu starten und eine weitere, um diesen zu beenden.",
- "",
- "",
- "> TRANSFER, MOV {destvar := } {Tret := }",
- " -{ 123 MOV}- -{ srcvar MOV}-",
- "",
- "Wenn der Eingang dieser Anweisung ‘wahr’ ist, so setzt diese die",
- "vorliegende Zielvariable gleich der vorliegenden Quellvariablen",
- "oder Konstanten. Wenn der Eingang dieser Anweisung ‘unwahr’ ist, so",
- "geschieht nichts. Mit der TRANSFER-Anweisung (MOV) können Sie jede",
- "Variable zuweisen; dies schließt Timer und Zähler Statusvariablen ein,",
- "welche mit einem vorgestellten ‘T’ oder ‘C’ unterschieden werden. Eine",
- "Anweisung zum Beispiel, die eine ‘0’ in einen ‘TBewahrend’ transferiert,",
- "ist äquivalent mit einer RES-Anweisung für diesen Timer. Diese Anweisung",
- "muss ganz rechts im Netzwerk stehen.",
- "",
- "",
- "> ARITHMETISCHE OPERATIONEN {ADD kay :=} {SUB Ccnt :=}",
- " -{ 'a' + 10 }- -{ Ccnt - 10 }-",
- "",
- "> {MUL dest :=} {DIV dv := }",
- " -{ var * -990 }- -{ dv / -10000}-",
- "",
- "Wenn der Eingang einer dieser Anweisungen ‘wahr’ ist, so setzt diese",
- "die vorliegende Zielvariable gleich dem vorliegenden arithmetischem",
- "Ausdruck. Die Operanden können entweder Variabelen (einschließlich Timer-",
- "und Zählervariabelen) oder Konstanten sein. Diese Anweisungen verwenden",
- "16-Bitzeichen Mathematik. Beachten Sie, dass das Ergebnis jeden Zyklus",
- "ausgewertet wird, wenn der Eingangszustand ‘wahr’ ist. Falls Sie eine",
- "Variable inkrementieren oder dekrementieren (d.h., wenn die Zielvariable",
- "ebenfalls einer der Operanden ist), dann wollen Sie dies vermutlich",
- "nicht; normalerweise würden Sie einen Impuls (one-shot) verwenden,",
- "sodass die Variable nur bei einer steigenden oder fallenden Flanke des",
- "Eingangszustands ausgewertet wird. Dividieren kürzt: D.h. 8 / 3 = 2.",
- "Diese Anweisungen müssen ganz rechts im Netzwerk stehen.",
- "",
- "",
- "> VERGLEICHEN [var ==] [var >] [1 >=]",
- " -[ var2 ]- -[ 1 ]- -[ Ton]-",
- "",
- "> [var /=] [-4 < ] [1 <=]",
- " -[ var2 ]- -[ vartwo]- -[ Cup]-",
- "",
- "Wenn der Eingang dieser Anweisung ‘unwahr’ ist, so ist der Ausgang",
- "auch ‘unwahr’. Wenn der Eingang dieser Anweisung ‘wahr’ ist, dann ist",
- "Ausgang ‘wahr’; dies aber nur, wenn die vorliegende Bedingung ‘wahr’",
- "ist. Diese Anweisungen können zum Vergleichen verwendet werden, wie:",
- "Auf gleich, auf größer als, auf größer als oder gleich, auf ungleich,",
- "auf kleiner als, auf kleiner als oder gleich, eine Variable mit einer",
- "Variablen oder eine Variable mit einer 16-Bitzeichen-Konstanten.",
- "",
- "",
- "> ZÄHLER CName CName",
- " --[CTU >=5]-- --[CTD >=5]—",
- "",
- "Ein Zähler inkrementiert (CTU, aufwärtszählen) oder dekrementiert",
- "(CTD, abwärtszählen) die bezogene Zählung bei jeder steigenden Flanke",
- "des Eingangszustands des Netzwerks (d.h. der Eingangszustand des",
- "Netzwerks geht von ‘unwahr’ auf ‘wahr’ über). Der Ausgangszustand des",
- "Zählers ist ‘wahr’, wenn die Zähler- variable ist größer oder gleich 5",
- "und andernfalls ‘unwahr’. Der Ausgangszustand des Netzwerks kann ‘wahr’",
- "sein, selbst wenn der Eingangszustand ‘unwahr’ ist; das hängt lediglich",
- "von Zählervariablen ab. Sie können einer CTU- und CTD-Anweisung den",
- "gleichen Namen zuteilen, um den gleichen Zähler zu inkrementieren und",
- "dekrementieren. Die RES-Anweisung kann einen Zähler rücksetzen oder auch",
- "eine gewöhnliche Variablen-Operation mit der Zählervariablen ausführen.",
- "",
- "",
- "> ZIRKULIERENDER ZÄHLER CName",
- " --{CTC 0:7}--",
- "",
- "Ein zirkulierender Zähler arbeitet wie ein normaler CTU-Zähler, außer",
- "nach der Erreichung seiner Obergrenze, rücksetzt er seine Zählervariable",
- "auf Null. Zum Beispiel würde der oben gezeigte Zähler, wie folgt zählen:",
- "0, 1, 2, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2,.... Dies ist",
- "hilfreich in Kombination mit bedingten Anweisungen der Variablen‘CName’;",
- "Sie können dies als eine Folgeschaltung verwenden. CTC-Zähler takten",
- "mit der aufsteigenden Flanke der Eingangsbedingung des Netzwerks.",
- "Diese Anweisung muss ganz rechts im Netzwerk stehen.",
- "",
- "",
- "> SCHIEBEREGISTER {SHIFT REG }",
- " -{ reg0..3 }-",
- "",
- "Ein Schieberegister besteht aus einer Reihe von Variablen. So bestünde",
- "zum Beispiel ein Schieberegister aus den Variablen ‘reg0’, ‘reg1’,",
- "‘reg2’, and ‘reg3’. Der Eingang des Schieberegisters ist ‘reg0’. Bei",
- "jeder steigenden Flanke der Eingansbedingung des Netzwerks, schiebt das",
- "Schieberegister nach rechts. Dies bedeutet es wie folgt zuweist: ‘reg3’",
- "nach ‘reg2’, ‘reg2’ nach ‘reg1’ und ‘reg1’ nach ‘reg0’. ‘reg0’ bleibt",
- "unverändert. Ein großes Schieberegister kann leicht viel Speicherplatz",
- "belegen. Diese Anweisung muss ganz rechts im Netzwerk stehen.",
- "",
- "",
- "> NACHSCHLAG-TABELLE {dest := }",
- " -{ LUT[i] }-",
- "",
- "Eine Nachschlag-Tabelle ist eine Anordnung von n Werten. Wenn die",
- "Eingangsbedingung des Netzwerks ‘wahr’ ist, so wird die Ganzzahl-Variable",
- "‘dest’ mit dem Eintrag in der Nachschlag-Tabelle gleichgesetzt, der der",
- "Ganzzahl-Variablen ‘i’ entspricht. Das Verzeichnis beginnt bei Null,",
- "insofern muss sich ‘i’ zwischen 0 und (n-1) befinden. Das Verhalten",
- "dieser Anweisung ist undefiniert, wenn sich die Werte des Verzeichnisses",
- "außerhalb dieses Bereichs befinden.",
- "",
- "",
- "> NÄHERUNGS-LINEAR-TABELLE {yvar :=}",
- " -{PWL[xvar] }-",
- "",
- "Dies ist eine gute Methode für die Näherungslösung einer komplizierten",
- "Funktion oder Kurve. Sie könnte zum Beispiel hilfreich sein, wenn Sie",
- "versuchen eine Eichkurve zu verwenden, um die rohe Ausgangsspannung",
- "eines Fühlers in günstigere Einheiten zu wandeln.",
- "",
- "Angenommen Sie versuchen eine Näherungslösung für eine Funktion zu finden,",
- "die eine Eingangs-Ganzzahlvariable ‘x’ in Ausgangs-Ganzzahlvariable ‘y’",
- "wandelt. Einige Punkte der Funktion sind Ihnen bekannt; so würden Sie",
- "z.B. die folgenden kennen:",
- "",
- " f(0) = 2",
- " f(5) = 10",
- " f(10) = 50",
- " f(100) = 100",
- "",
- "Dies bedeutet, dass sich die Punkte",
- "",
- " (x0, y0) = ( 0, 2)",
- " (x1, y1) = ( 5, 10)",
- " (x2, y2) = ( 10, 50)",
- " (x3, y3) = (100, 100)",
- "",
- "in dieser Kurve befinden. Diese 4 Punkte können Sie in die Tabelle der",
- "‘Näherungs-Linear’-Anweisung eintragen. Die ‘Näherungs-Linear’-Anweisung",
- "wird dann auf den Wert von ‘xvar’ schauen und legt den Wert von ‘yvar’",
- "fest. Sie stellt ‘yvar’ so ein, dass die ‘Näherungs-Linear’-Kurve sich",
- "durch alle Punkte bewegt, die Sie vorgegeben haben. Wenn Sie z.B. für",
- "‘xvar’ = 10 vorgegeben haben, dann stellt die Anweisung ‘yvar’ auf gleich",
- "50 ein.",
- "",
- "Falls Sie dieser Anweisung einen Wert ‘xvar’ zuweisen, der zwischen zwei",
- "Werten von ‘x’ liegt, denen Sie Punkte zugeordnet haben, dann stellt die",
- "Anweisung ‘yvar’ so ein, dass (‘xvar’, ‘yvar’) in der geraden Linie liegt;",
- "diejenige die, die zwei Punkte in der Tabelle verbindet. Z.B. erzeugt",
- "‘xvar’ = 55 bei ‘yvar’ = 75. Die beiden Punkte in der Tabelle sind (10,",
- "50) und (100, 100). 55 liegt auf halbem Weg zwischen 10 und 100 und 75",
- "liegt auf halbem Weg zwischen 50 und 100, somit liegt (55, 75) auf der",
- "Linie, die diese zwei Punkte verbindet.",
- "",
- "Die Punkte müssen in aufsteigender Reihenfolge der x-Koordinaten",
- "angegeben werden. Einige mathematische Operationen, erforderlich für",
- "bestimmte Nachschlag-Tabellen mit 16-Bit-Mathematik, kann man ggf. nicht",
- "ausführen. In diesem Falle gibt LDmicro eine Warnmeldung aus. So würde",
- "z.B. die folgende Nachschlag-Tabelle eine Fehlermeldung hervorrufen:",
- "",
- " (x0, y0) = ( 0, 0)",
- " (x1, y1) = (300, 300)",
- "",
- "Sie können diesen Fehler beheben, indem sie den Abstand zwischen den",
- "Punkten kleiner machen. So ist zum Beispiel die nächste Tabelle äquivalent",
- "zur vorhergehenden, ruft aber keine Fehlermeldung hervor.",
- "",
- " (x0, y0) = ( 0, 2)",
- " (x1, y1) = (150, 150)",
- " (x2, y2) = (300, 300)",
- "",
- "Es wird kaum einmal notwendig sein, mehr als fünf oder sechs Punkte",
- "zu verwenden. Falls Sie mehr Punkte hinzufügen, so vergrößert dies",
- "Ihren Code und verlangsamt die Ausführung. Falls Sie für ‘xvar’ einen",
- "Wert vergeben, der größer ist, als die größte x-Koordinate der Tabelle",
- "oder kleiner, als die kleinste x-Koordinate in der Tabelle, so ist das",
- "Verhalten der Anweisung undefiniert. Diese Anweisung muss ganz rechts",
- "im Netzwerk stehen.",
- "",
- "",
- "> A/D-WANDLER EINLESEN AName",
- " --{READ ADC}--",
- "",
- "LDmicro kann einen Code erzeugen, der ermöglicht, die A/D-Wandler",
- "zu verwenden, die in manchen Mikroprozessoren vorgesehen sind.",
- "Wenn der Eingangszustand dieser Anweisung ‘wahr’ ist, dann wird eine",
- "Einzellesung von dem A/D-Wandler entnommen und in der Variablen ‘AName’",
- "gespeichert. Diese Variable kann anschließend mit einer gewöhnlichen",
- "Ganzzahlvariablen bearbeitet werden (wie: Kleiner als, größer als,",
- "arithmetisch usw.). Weisen Sie ‘Axxx’ in der gleichen Weise einen Pin",
- "zu, wie Sie einen Pin für einen digitalen Ein- oder Ausgang vergeben",
- "würden, indem auf diesen in der Liste unten in der Maske (Bildanzeige)",
- "doppelklicken. Wenn der Eingangszustand dieses Netzwerks ‘unwahr’ ist,",
- "so wird die Variable ‘AName’ unverändert belassen.",
- "",
- "Für alle derzeitig unterstützten Prozessoren gilt: Eine 0 Volt Lesung",
- "am Eingang des A/D-Wandlers entspricht 0. Eine Lesung gleich der",
- "Versorgungsspannung (bzw. Referenzspannung) entspricht 1023. Falls Sie",
- "AVR-Prozessoren verwenden, so verbinden Sie AREF mit Vdd. (Siehe Atmel",
- "Datenblatt, dort wird eine Induktivität von 100µH empfohlen). Sie können",
- "arithmetische Operationen verwenden, um einen günstigeren Maßstabfaktor",
- "festzulegen, aber beachten Sie, dass das Programm nur Ganzzahl-Arithmetik",
- "vorsieht. Allgemein sind nicht alle Pins als A/D-Wandler verwendbar. Die",
- "Software gestattet Ihnen nicht, einen Pin zuzuweisen, der kein A/D",
- "bzw. analoger Eingang ist. Diese Anweisung muss ganz rechts im Netzwerk",
- "stehen.",
- "",
- "",
- "> PULSWEITEN MODULATIONSZYKLUS FESTLEGEN duty_cycle",
- " -{PWM 32.8 kHz}-",
- "",
- "LDmicro kann einen Code erzeugen, der ermöglicht, die PWM-Peripherie",
- "zu verwenden, die in manchen Mikroprozessoren vorgesehen ist. Wenn die",
- "Eingangsbedingung dieser Anweisung ‘wahr’ ist, so wird der Zyklus der",
- "PWM-Peripherie mit dem Wert der Variablen ‘duty cycle’ gleichgesetzt. Der",
- "‘duty cycle’ muss eine Zahl zwischen 0 und 100 sein. 0 entspricht immer",
- "‘low’ und 100 entsprechend immer ‘high’. (Wenn Sie damit vertraut sind,",
- "wie die PWM-Peripherie funktioniert, so bemerken Sie, dass dies bedeutet,",
- "dass LDmicro die ‘duty cycle’-Variable automatisch prozentual zu den",
- "PWM-Taktintervallen skaliert [= den Maßstabfaktor festlegt].)",
- "",
- "Sie können die PWM-Zielfrequenz in Hz definieren. Es kann vorkommen, dass",
- "die angegebene Frequenz nicht genau erreicht wird, das hängt davon ab,",
- "wie sich diese innerhalb der Taktfrequenz des Prozessors einteilt. LDmicro",
- "wählt dann die nächst erreichbare Frequenz; falls der Fehler zu groß ist,",
- "so wird eine Warnung ausgegeben. Höhere Geschwindigkeiten können die",
- "Auflösung beeinträchtigen.",
- "",
- "Diese Anweisung muss ganz rechts im Netzwerk stehen. Die ‘ladder",
- "logic’-Laufzeit verbraucht (schon) einen Timer, um die Zykluszeit",
- "zu messen. Dies bedeutet, dass die PWM nur bei den Mikroprozessoren",
- "verfügbar ist, bei denen mindestens zwei geeignete Timer vorhanden sind.",
- "PWM verwendet den PIN CCP2 (nicht CCP1) bei den PIC16-Prozessoren und",
- "OC2 (nicht OC1A) bei den AVR-Prozessoren.",
- "",
- "",
- "> REMANENT MACHEN saved_var",
- " --{PERSIST}--",
- "",
- "Wenn der Eingangszustand dieser Anweisung ‘wahr’ ist, so bewirkt",
- "dies, dass eine angegebene Ganzzahl-Variable automatisch im EEPROM",
- "gespeichert wird. Dies bedeutet, dass ihr Wert bestehen bleiben wird,",
- "auch wenn der Prozessor seine Versorgungsspannung verliert. Es ist",
- "nicht notwendig, die Variable an klarer Stelle im EEPROM zu speichern,",
- "dies geschieht automatisch, so oft sich der Wert der Variablen",
- "ändert. Bei Spannungswiederkehr wird die Variable automatisch vom",
- "EEPROM zurückgespeichert. Falls eine Variable, die häufig ihren Wert",
- "ändert, remanent (dauerhaft) gemacht wird, so könnte Ihr Prozessor sehr",
- "rasch verschleißen, weil dieser lediglich für eine begrenzte Anzahl von",
- "Schreibbefehlen konstruiert ist (~100 000). Wenn der Eingangszustand des",
- "Netzwerks ‘unwahr’ ist, so geschieht nichts. Diese Anweisung muss ganz",
- "rechts im Netzwerk stehen.",
- "",
- "",
- "> UART (SERIELL) EMPFANGEN var",
- " --{UART RECV}--",
- "",
- "LDmicro kann einen Code erzeugen, der ermöglicht UART zu verwenden,",
- "welcher in manchen Mikroprozessoren vorgesehen ist.",
- "Bei AVR-Prozessoren mir mehrfachem UART, wird nur UART1 (nicht UART0)",
- "unterstützt. Konfigurieren Sie die Baudrate, indem Sie ‘Voreinstellungen",
- "-> Prozessor-Parameter’ verwenden. Bestimmte Baudraten werden mit",
- "bestimmten Quarzfrequenzen nicht erreichbar sein. In diesem Fall gibt",
- "LDmicro eine Warnmeldung.",
- "",
- "Wenn der Eingangszustand dieser Anweisung ‘unwahr’ ist, so geschieht",
- "nichts. Wenn der Eingangszustand ‘wahr’ ist, so versucht diese Anweisung",
- "ein einzelnes Schriftzeichen vom UART-Eingang zu empfangen. Wenn",
- "kein Schriftzeichen eingelesen wird, dann ist der Ausgangszustand",
- "‘unwahr’. Wenn ein ASCII-Zeichen eingelesen wird, so wird sein Wert in",
- "‘var’ abgespeichert und der Ausgangszustand wird für einen einzelnen",
- "Zyklus ‘wahr’.",
- "",
- "",
- "> UART (SERIELL) SENDEN var",
- " --{UART SEND}--",
- "",
- "LDmicro kann einen Code erzeugen, der ermöglicht UART zu verwenden,",
- "welcher in manchen Mikroprozessoren vorgesehen ist.",
- "Bei AVR-Prozessoren mir mehrfachem UART, wird nur UART1 (nicht UART0)",
- "unterstützt. Konfigurieren Sie die Baudrate, indem Sie ‘Voreinstellungen",
- "-> Prozessor-Parameter’ verwenden. Bestimmte Baudraten werden mit",
- "bestimmten Quarzfrequenzen nicht erreichbar sein. In diesem Fall gibt",
- "LDmicro eine Warnmeldung.",
- "",
- "Wenn der Eingangszustand dieser Anweisung ‘unwahr’ ist, so geschieht",
- "nichts. Wenn der Eingangszustand ‘wahr’ ist, so schreibt diese",
- "Anweisung ein einzelnes Schriftzeichen zum UART. Der ASCII-Wert des",
- "Schriftzeichens, welches gesendet werden soll, muss vorher in ‘var’",
- "abgespeichert worden sein. Der Ausgangszustand dieses Netzwerks ist",
- "‘wahr’, wenn UART beschäftigt ist (gerade dabei ein Schriftzeichen zu",
- "übermitteln) und andernfalls ‘unwahr’.",
- "",
- "Denken Sie daran, dass einige Zeit zum Senden von Schriftzeichen",
- "beansprucht wird. Überprüfen Sie den Ausgangszustand dieser Anweisung,",
- "sodass das erste Schriftzeichen bereits übermittelt wurde, bevor Sie",
- "versuchen ein zweites Schriftzeichen zu übermitteln. Oder verwenden Sie",
- "einen Timer, um eine Verzögerung zwischen die Schriftzeichen fügen. Sie",
- "dürfen den Eingangszustand dieser Anweisung nur dann auf ‘wahr’ setzen",
- "(bzw. ein Schriftzeichen übermitteln), wenn der Ausgangszustand ‘unwahr’",
- "ist (bzw. UART unbeschäftigt ist).",
- "",
- "Untersuchen Sie die “Formatierte Zeichenfolge”-Anweisung, bevor Sie",
- "diese Anweisung verwenden. Die “Formatierte Zeichenfolge”- Anweisung",
- "ist viel einfacher in der Anwendung und fast sicher fähig, das zu tun,",
- "was Sie beabsichtigen.",
- "",
- " ",
- "> FORMATIERTE ZEICHENFOLGE ÜBER UART var",
- " -{\"Druck: \\3\\r\\n\"}-",
- "",
- "LDmicro kann einen Code erzeugen, der ermöglicht UART zu verwenden,",
- "welcher in manchen Mikroprozessoren vorgesehen ist.",
- "Bei AVR-Prozessoren mir mehrfachem UART, wird nur UART1 (nicht UART0)",
- "unterstützt. Konfigurieren Sie die Baudrate, indem Sie ‘Voreinstellungen",
- "-> Prozessor-Parameter’ verwenden. Bestimmte Baudraten werden mit",
- "bestimmten Quarzfrequenzen nicht erreichbar sein. In diesem Fall gibt",
- "LDmicro eine Warnmeldung.",
- "",
- "Wenn der Eingangszustand des Netzwerks für diese Anweisung von ‘unwahr’",
- "auf ‘wahr’ übergeht, so beginnt diese eine vollständige Zeichenfolge",
- "über den seriellen Anschluss zu senden. Wenn die Zeichenfolge die",
- "besondere Reihenfolge ‘\\3’ enthält, dann wird diese Folge durch den Wert",
- "von ‘var’ ersetzt, welcher automatisch in eine Zeichenfolge gewandelt",
- "wird. Die Variable wird formatiert, sodass diese exakt 3 Schriftzeichen",
- "übernimmt. Falls die Variable zum Beispiel gleich 35 ist, dann wird die",
- "exakte ausgegebene Zeichenfolge, wie folgt aussehen: ‘Druck: 35\\r\\n’",
- "(beachten Sie das zusätzliche Freizeichen). Wenn stattdessen die Variable",
- "gleich 1432 ist, so wäre das Verhalten der Anweisung undefiniert,",
- "weil 1432 mehr als drei Stellen hat. In diesem Fall wäre es notwendig",
- "stattdessen ‘\\4’ zu verwenden.",
- "",
- "Falls die Variable negativ ist, so verwenden Sie stattdessen ‘\\-3d’",
- "(oder ‘\\-4d’). LDmicro wird hierdurch veranlasst eine vorgestellte",
- "Freistelle für positive Zahlen und ein vorgestelltes Minuszeichen für",
- "negative Zahlen auszugeben.",
- "",
- "Falls mehrere “Formatierte Zeichenfolge”-Anweisungen zugleich ausgegeben",
- "werden (oder wenn eine neue Zeichenfolge ausgegeben wird bevor die",
- "vorherige vollendet ist), oder auch wenn diese mit UART TX Anweisungen",
- "vermischt, so ist das Verhalten undefiniert.",
- "",
- "Es ist auch möglich diese Anweisung für eine feste Zeichenfolge zu",
- "verwenden, die über den seriellen Anschluss gesendet wird, ohne den Wert",
- "einer Ganzzahlvariablen in den Text zu interpolieren. In diesem Fall",
- "fügen Sie einfach diese spezielle Steuerungsfolge nicht ein.",
- "",
- "Verwenden Sie ‘\\\\’ für einen zeichengetreuen verkehrten Schrägstrich.",
- "Zusätzlich zur Steuerungsfolge für die Interpolierung einer Ganzzahl-",
- "Variablen, sind die folgenden Steuerungszeichen erhältlich:",
- "",
- " * \\r -- carriage return Zeilenschaltung",
- " * \\n -- new line Zeilenwechsel",
- " * \\f -- form feed Formularvorschub",
- " * \\b -- backspace Rücksetzen",
- " * \\xAB -- character with ASCII value 0xAB (hex)",
- " -- Schriftzeichen mit ASCII-Wert 0xAB (hex)",
- "",
- "Der Ausgangszustand des Netzwerks dieser Anweisung ist ‘wahr’, während",
- "diese Daten überträgt, ansonsten ‘unwahr’. Diese Anweisung benötigt eine",
- "große Menge des Programmspeichers, insofern sollte sie sparsam verwendet",
- "werden. Die gegenwärtige Umsetzung ist nicht besonders effizient, aber",
- "eine bessere würde Änderungen an sämtlichen Ausläufern des Programms",
- "benötigen.",
- "",
- "",
- "EIN HINWEIS ZUR VERWENDUNG DER MATHEMATIK",
- "=========================================",
- "",
- "Denken Sie daran, dass LDmicro nur 16-Bit mathematische Operationen",
- "ausführt. Dies bedeutet, dass das Endresultat jeder Berechnung,",
- "die Sie vornehmen, eine Ganzzahl zwischen -32768 und 32767 sein muss.",
- "Dies bedeutet auch, dass die Zwischenergebnisse Ihrer Berechnungen alle",
- "in diesem Bereich liegen müssen.",
- "",
- "Wollen wir zum Beispiel annehmen, dass Sie folgendes berechnen möchten",
- "y = (1/x) * 1200, in der x zwischen 1 und 20 liegt.",
- "Dann liegt y zwischen 1200 und 60, was in eine 16-Bit Ganzzahl passt,",
- "so wäre es zumindest theoretisch möglich diese Berechnung auszuführen.",
- "Es gibt zwei Möglichkeiten, wie Sie dies codieren könnten: Sie können",
- "die Reziproke (Kehrwert) ausführen and dann multiplizieren:",
- "",
- " || {DIV temp :=} ||",
- " ||---------{ 1 / x }----------||",
- " || ||",
- " || {MUL y := } ||",
- " ||----------{ temp * 1200}----------||",
- " || ||",
- "",
- "Oder Sie könnten einfach die Division in einem Schritt direkt vornehmen.",
- "",
- " || {DIV y :=} ||",
- " ||-----------{ 1200 / x }-----------||",
- "",
- "",
- "Mathematisch sind die zwei äquivalent; aber wenn Sie diese ausprobieren,",
- "so werden Sie herausfinden, dass die erste ein falsches Ergebnis von",
- "y = 0 liefert. Dies geschieht, weil die Variable einen Unterlauf",
- "[= resultatabhängige Kommaverschiebung] ergibt. So sei zum Beispiel x = 3,",
- "(1 / x) = 0.333, dies ist aber keine Ganzzahl; die Divisionsoperation",
- "nähert dies, als 'temp = 0'. Dann ist y = temp * 1200 = 0. Im zweiten",
- "Fall gibt es kein Zwischenergebnis, welches einen Unterlauf [= resultats-",
- "abhängige Kommaverschiebung] ergibt, somit funktioniert dann alles.",
- "",
- "Falls Sie Probleme bei Ihren mathematischen Operationen erkennen,",
- "dann überprüfen Sie die Zwischenergebnisse auf Unterlauf [eine",
- "resultatabhängige Kommaverschiebung] (oder auch auf Überlauf, der dann",
- "im Programm in Umlauf kommt; wie zum Beispiel 32767 + 1 = -32768).",
- "Wann immer möglich, wählen Sie Einheiten, deren Werte in einem Bereich",
- "von -100 bis 100 liegen.",
- "",
- "Falls Sie eine Variable um einen bestimmten Faktor vergrößern müssen, tun",
- "Sie dies, indem Sie eine Multiplikation und eine Division verwenden. Um",
- "zum Beispiel y = 1.8 * x zu vergrößern, berechnen Sie y = (9/5) * x,",
- "(was dasselbe ist, weil 1,8 = 9/5 ist), und codieren Sie dies als",
- "y = (9 * x)/5, indem Sie die Multiplikation zuerst ausführen.",
- "",
- " || {MUL temp :=} ||",
- " ||---------{ x * 9 }----------||",
- " || ||",
- " || {DIV y :=} ||",
- " ||-----------{ temp / 5 }-----------||",
- "",
- "",
- "Dies funktioniert mit allen x < (32767 / 9), oder x < 3640. Bei höheren",
- "Werten würde die Variable ‘temp’ überfließen. Für x gibt es eine",
- "ähnliche Untergrenze.",
- "",
- "",
- "KODIER-STIL",
- "===========",
- "",
- "Ich gestatte mehrere Spulen in Parallelschaltung in einem einzigen",
- "Netzwerk unterzubringen. Das bedeutet, sie können ein Netzwerk, wie",
- "folgt schreiben:",
- "",
- " || Xa Ya ||",
- " 1 ||-------] [--------------( )-------||",
- " || ||",
- " || Xb Yb ||",
- " ||-------] [------+-------( )-------||",
- " || | ||",
- " || | Yc ||",
- " || +-------( )-------||",
- " || ||",
- " ",
- "Anstatt diesem:",
- "",
- " || Xa Ya ||",
- " 1 ||-------] [--------------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || Xb Yb ||",
- " 2 ||-------] [--------------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || Xb Yc ||",
- " 3 ||-------] [--------------( )-------||",
- " || ||",
- "",
- "Rein theoretisch bedeutet das, dass Sie irgendein Programm, als ein",
- "gigantisches Netzwerk, schreiben könnten. Und es bestünde überhaupt",
- "keine Notwendigkeit mehrere Netzwerke zu verwenden. In der Praxis ist",
- "dies aber eine schlechte Idee, denn wenn Netzwerke komplexer werden, so",
- "werden sie auch schwieriger zu editieren, ohne Löschen und neu Schreiben",
- "von Anweisungen.",
- "",
- "Jedoch, ist es manchmal ein guter Einfall, verwandte Logik in einem",
- "einzelnen Netzwerk zusammenzufassen. Dies erzeugt einen beinahe",
- "identischen Code, als ob sie getrennte Netzwerke entworfen hätten, es",
- "zeigt aber, dass diese Anweisungen (Logik) verwandt ist, wenn man diese",
- "im Netzwerk-Diagramm betrachtet.",
- "",
- " * * *",
- "",
- "Im Allgemeinen hält man es für eine schlechte Form, den Code in einer",
- "solchen Weise zu schreiben, dass sein Ergebnis von einer Folge von",
- "Netzwerken abhängt. So zum Beispiel ist der folgende Code nicht besonders",
- "gut, falls ‘xa’ und ‘xb’ jemals ‘wahr’ würden.",
- "",
- " || Xa {v := } ||",
- " 1 ||-------] [--------{ 12 MOV}--||",
- " || ||",
- " || Xb {v := } ||",
- " ||-------] [--------{ 23 MOV}--||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || [v >] Yc ||",
- " 2 ||------[ 15]-------------( )-------||",
- " || ||",
- "",
- "Ich werde diese Regel brechen und indem ich dies so mache, entwerfe ich",
- "einen Code-Abschnitt, der erheblich kompakter ist. Hier zum Beispiel,",
- "zeige ich auf, wie ich eine 4-Bit binäre Größe von ‘xb3:0’ in eine",
- "Ganzzahl wandeln würde.",
- "",
- " || {v := } ||",
- " 3 ||-----------------------------------{ 0 MOV}--||",
- " || ||",
- " || Xb0 {ADD v :=} ||",
- " ||-------] [------------------{ v + 1 }-----------||",
- " || ||",
- " || Xb1 {ADD v :=} ||",
- " ||-------] [------------------{ v + 2 }-----------||",
- " || ||",
- " || Xb2 {ADD v :=} ||",
- " ||-------] [------------------{ v + 4 }-----------||",
- " || ||",
- " || Xb3 {ADD v :=} ||",
- " ||-------] [------------------{ v + 8 }-----------||",
- " || ||",
- "",
- "Falls die TRANSFER-Anweisung (MOV) an das untere Ende des Netzwerks",
- "gebracht würde, anstatt auf das obere, so würde der Wert von ‘v’, an",
- "anderer Stelle im Programm gelesen, gleich Null sein. Das Ergebnis dieses",
- "Codes hängt daher von der Reihenfolge ab, in welcher die Anweisungen",
- "ausgewertet werden. Im Hinblick darauf, wie hinderlich es wäre, diesen",
- "Code auf eine andere Weise zu schreiben, nehme ich dies so hin.",
- "",
- "",
- "BUGS",
- "====",
- "",
- "LDmicro erzeugt keinen sehr effizienten Code; es ist langsam in der",
- "Ausführung und geht verschwenderisch mit dem Flash- und RAM-Speicher",
- "um. Trotzdem kann ein mittelgroßer PIC- oder AVR-Prozessor alles, was",
- "eine kleine SPS kann, somit stört dies mich nicht besonders.",
- "",
- "Die maximale Länge der Variabelen-Bezeichnungen (-Namen) ist sehr",
- "begrenzt. Dies ist so, weil diese so gut in das KOP-Programm (ladder)",
- "passen. Somit sehe ich keine gute Lösung für diese Angelegenheit.",
- "",
- "Falls Ihr Programm zu groß für die Zeit-, Programmspeicher- oder",
- "Datenspeicher-Beschränkungen des Prozessors ist, den Sie gewählt haben,",
- "so erhalten Sie keine Fehlermeldung. Es wird einfach irgendwo anders alles",
- "vermasseln. (Anmerkung: Das AVR STK500 gibt hierzu Fehlermeldungen aus.)",
- "",
- "Unsorgfältiges Programmieren bei den Datei Öffnen/Abspeichern-Routinen",
- "führen wahrscheinlich zu der Möglichkeit eines Absturzes oder es wird",
- "ein willkürlicher Code erzeugt, der eine beschädigte oder bösartige .ld",
- "Datei ergibt.",
- "",
- "Bitte berichten Sie zusätzliche Bugs oder richten Sie Anfragen für neue",
- "Programm-Bestandteile an den Autor (in Englisch).",
- "",
- "Thanks to:",
- " * Marcelo Solano, for reporting a UI bug under Win98",
- " * Serge V. Polubarjev, for not only noticing that RA3:0 on the",
- " PIC16F628 didn't work but also telling me how to fix it",
- " * Maxim Ibragimov, for reporting and diagnosing major problems",
- " with the till-then-untested ATmega16 and ATmega162 targets",
- " * Bill Kishonti, for reporting that the simulator crashed when the",
- " ladder logic program divided by zero",
- " * Mohamed Tayae, for reporting that persistent variables were broken",
- " on the PIC16F628",
- " * David Rothwell, for reporting several user interface bugs and a",
- " problem with the \"Export as Text\" function",
- "",
- "Particular thanks to Heinz Ullrich Noell, for this translation (of both",
- "the manual and the program's user interface) into German.",
- "",
- "",
- "COPYING, AND DISCLAIMER",
- "=======================",
- "",
- "DO NOT USE CODE GENERATED BY LDMICRO IN APPLICATIONS WHERE SOFTWARE",
- "FAILURE COULD RESULT IN DANGER TO HUMAN LIFE OR DAMAGE TO PROPERTY. THE",
- "AUTHOR ASSUMES NO LIABILITY FOR ANY DAMAGES RESULTING FROM THE OPERATION",
- "OF LDMICRO OR CODE GENERATED BY LDMICRO.",
- "",
- "This program is free software: you can redistribute it and/or modify it",
- "under the terms of the GNU General Public License as published by the",
- "Free Software Foundation, either version 3 of the License, or (at your",
- "option) any later version.",
- "",
- "This program is distributed in the hope that it will be useful, but",
- "WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY",
- "or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License",
- "for more details.",
- "",
- "You should have received a copy of the GNU General Public License along",
- "with this program. If not, see <http://www.gnu.org/licenses/>.",
- "",
- "",
- "Jonathan Westhues",
- "",
- "Rijswijk -- Dec 2004",
- "Waterloo ON -- Jun, Jul 2005",
- "Cambridge MA -- Sep, Dec 2005",
- " Feb, Mar 2006",
- "",
- "Email: user jwesthues, at host cq.cx",
- "",
- "",
- NULL
-};
-#endif
-
-#ifdef LDLANG_FR
-char *HelpTextFr[] = {
- "INTRODUCTION",
- "============",
- "",
- "LDmicro génére du code natif pour certains microcontroleurs Microchip",
- "PIC16F et Atmel AVR. Usuellement les programmes de developpement pour ces",
- "microcontrolleurs sont écrits dans des langages comme l'assembleur , le",
- "C ou le Basic. Un programme qui utilise un de ces langages est une suite",
- "de commandes. Ces programmes sont puissants et adaptés à l'architecture",
- "des processeurs, qui de façon interne exécutent une liste d'instructions.",
- "",
- "Les API (Automates Programmables Industriels, PLC en anglais, SPS en",
- "allemand) utilisent une autre voie et sont programmés en Langage à",
- "Contacts (ou LADDER). Un programme simple est représenté comme ceci :",
- "",
- "",
- " || ||",
- " || Xbutton1 Tdon Rchatter Yred ||",
- " 1 ||-------]/[---------[TON 1.000 s]-+-------]/[--------------( )-------||",
- " || | ||",
- " || Xbutton2 Tdof | ||",
- " ||-------]/[---------[TOF 2.000 s]-+ ||",
- " || ||",
- " || ||",
- " || ||",
- " || Rchatter Ton Tnew Rchatter ||",
- " 2 ||-------]/[---------[TON 1.000 s]----[TOF 1.000 s]---------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " ||------[END]---------------------------------------------------------||",
- " || ||",
- " || ||",
- "",
- "(TON est une tempo travail; TOF est une tempo repos. les commandes --] [-- ",
- "représentent des Entrées, qui peuvent être des contacts de relais. Les ",
- "commandes --( )-- sont des Sorties, qui peuvent représenter des bobines de ",
- "relais. Beaucoup de références de programmes de langage à contacts (LADDER) ",
- "existent sur Internet et sont à quelques détails près, identiques à ",
- "l'implémentation représentée ci-dessus.",
- "",
- "Un certain nombre de différences apparaissent entre les programmes en",
- "langage évolués ( C, Basic, Etc..) et les programmes pour API:",
- "",
- " * Le programme est représenté dans un format graphique, et non",
- " comme une liste de commandes en format texte. Beaucoup de personnes",
- " trouve cela plus facile à comprendre.",
- "",
- " * Au niveau de base, le programme apparait comme un diagramme",
- " de circuit avec des contacts de relais (Entrées) et des bobines",
- " (Sorties). Ceci est intuitif pour les programmeurs qui connaissent",
- " la théorie des circuits électriques.",
- "",
- " * Le compilateur de langage à contacts vérifie tout ceci lors",
- " de la compilation. Vous n'avez pas à écrire de code quand une",
- " Sortie est remplacée et est remise en Entrée ou si une temporisation",
- " est modifiée, vous n'avez pas non plus à spécifier l'ordre où les",
- " calculs doivent être effectués. L'outil API (PLC) s'occupe de cela",
- " pour vous.",
- "",
- "",
- "LDmicro compile le langage à contact (ladder) en code pour PIC16F ou",
- "AVR. Les processeurs suivants sont supportés:",
- "",
- " * PIC16F877",
- " * PIC16F628",
- " * PIC16F876 (non testé)",
- " * PIC16F88 (non testé)",
- " * PIC16F819 (non testé)",
- " * PIC16F887 (non testé)",
- " * PIC16F886 (non testé)",
- " * ATmega128",
- " * ATmega64",
- " * ATmega162 (non testé)",
- " * ATmega32 (non testé)",
- " * ATmega16 (non testé)",
- " * ATmega8 (non testé)",
- "",
- "Il doit être facile de supporter d'autres PIC ou AVR, mais je n'est",
- "aucun moyen pour les tester. Si vous en voulez un en particulier faites",
- "moi parvenir votre demande et je verrai ce que je peux faire.",
- "",
- "En utilisant LDmicro, vous dessinez un diagramme à contacts pour votre",
- "programme. Vous pouvez simuler le fonctionnement logique en temps réel sur",
- "votre PC. Quand vous êtes convaincu que le fonctionnement est correct,",
- "vous pouvez affecter les broches du microcontroleur pour les Entrées et",
- "Sorties, ensuite vous compilez votre programmeen code AVR ou PIC. Le",
- "fichier de sortie du compilateur est un fichier .HEX que vous devrez",
- "mettre dans le microcontroleur en utilisant un programmateur pour PIC",
- "ou AVR.",
- "",
- "",
- "LDmicro est conçu pour être similaire à la majorité des API commerciaux.",
- "Il y a quelques exceptions, et une partie des possibilités n'est",
- "pas standard avec le matériel industriel. Lire attentivement la",
- "description de chaque instruction même si elle parait familière. Ce",
- "document considère que vous avez une connaisance de base du langage à",
- "contact et de la structure des logiciels pour automates programmables.",
- "Cycle d'exécution : Lecture des Entrées -> Calculs -> Ecriture des Sorties",
- "",
- "",
- "CIBLES ADDITIONNELLES ",
- "=====================",
- "",
- "Il est aussi possible de générer du code ANSI C . Vous pouvez utiliser",
- "ceci pour n'importe quel processeur dont vous avez un compilateur C,",
- "mais le runtime est de votre responsabilité. LDmicro gérére uniquement",
- "le source pour le cycle de l'API. Vous êtes responsable de l'appel de",
- "chaque séquence du cycle et de l'implémentation de toutes les Entrées",
- "/ Sorties (Lecture/Ecriture des Entrées digitales, etc ...). Voir les",
- "commentaires dans le code source pour plus de détails.",
- "",
- "Finalement, LDmicro peut générer un code byte indépendant du processeur",
- "pour une machine virtuelle prévue pour faire fonctionner ce type de code.",
- "J'ai prévu un exemple simple d'implémentation d'un interpréteur /VM",
- "écrit en code C le plus portable possible. La cible fonctionne juste sur",
- "quelques plateformes ou vous pouvez prévoir votre VM. Ceci peut être utile",
- "pour des applications ou vous pouvez utiliser le languages à contacts",
- "comme du langage script pour customiser un programme important. Voir",
- "les commentaires dans l'exemple pour les détails.",
- "",
- "",
- "OPTIONS LIGNE DE COMMANDE",
- "=========================",
- "",
- "LDmicro.exe fonctionne normallement sans options de ligne de commande.",
- "Vous pouvez faire un raccourci vers le programme et le sauvegarder sur",
- "l'écran , il suffit alors de faire un double clic pour le faire démarrer",
- "et vous vous retrouvez ainsi dans l'interface utilisateur.",
- "",
- "Si un nom de fichier est passé en ligne de de commande de LDmicro, (ex:",
- "`ldmicro.exe asd.ld'), alors LDmicro va essayer d'ouvrir `asd.ld', si",
- "il existe. Une erreur se produira si `asd.ld' n'existe pas. Vous avez",
- "la possibilité d'associer LDmicro avec les fichiers d'extention .ld.",
- "Ceci permet à LDmicro de démarrer automatiquement lors d'un double clic",
- "sur un fichier xxx.ld.",
- "",
- "Si les arguments de la ligne de commande sont passés sous la forme:",
- "`ldmicro.exe /c src.ld dest.hex', LDmicro compilera le programme`src.ld',",
- "et sauvegardera le fichier compilé sous`dest.hex'. Après compilation",
- "LDmicro se termine, que la compilation soit correcte ou pas. Aucun",
- "message n'est affiché sur la console. Ce mode est pratique uniquement",
- "lorsque vous exécutez LDmicro en ligne de commande.",
- "",
- "",
- "BASES",
- "=====",
- "",
- "Si vous exécutez LDmicro sans arguments de ligne de commande, il démarre",
- "avec un programme vide. Si vous démarrer avec le nom d'un programme",
- "langage à contacts (xxx.ld) en ligne de commande, il va essayer de",
- "charger le programme au démarrage. LDmicro utilise son format interne",
- "pour le programme , il ne peut pas importer de programmes édités par",
- "d'autres outils.",
- "",
- "Si vous ne chargez pas un programme existant, LDmicro démarre en insérant",
- "une ligne vide. Vous pouvez ajouter les instructions pour votre programme:",
- "par exemple ajouter un jeu de contacts (Instruction -> Insérer Contact)",
- "qui sera nommé `Xnew'. `X' désigne un contact qui peut être lié à une",
- "broche d'entrée du microcontroleur, vous pouvez affecter la broche pour",
- "ce contact plus tard après avoir choisi le microcontroleur et renommé",
- "les contacts. La première lettre indique de quel type de composants il",
- "s'agit par exemple :",
- "",
- " * Xnom -- Relié à une broche d'entrée du microcontroleur",
- " * Ynom -- Relié à une broche de sortie du microcontroleur",
- " * Rnom -- `Relais interne': un bit en mémoire",
- " * Tnom -- Temporisation; Tempo travail, tempo repos, ou totalisatrice",
- " * Cnom -- Compteur, Compteur ou décompteur",
- " * Anom -- Un entier lu sur un comvertisseur A/D ",
- " * nom -- Variable générique (Entier : Integer)",
- "",
- "Choisir le reste du nom pour décrire l'utilisation de ce que fait cet",
- "objet et qui doit être unique dans tout le programme. Un même nom doit",
- "toujours se référer au même objet dans le programme en entier.Par",
- "exemple , vous aurez une erreur si vous utilisez une tempo travail",
- "(TON) appellée TDelai et une tempo repos (TOF) appellée aussi TDelai",
- "dans le même programme, le comptage effectué par ces tempo utilisera le",
- "même emplacement en mémoire, mais il est acceptable d'avoir une tempo",
- "sauvegardée (RTO) Tdelai même nom avec une instruction de RES, dans ce",
- "cas l'instruction fonctionne avec le même timer.",
- "",
- "Les noms de variables peuvent être des lettres, chiffres ou le",
- "caractère _. Un nom de variable ne doit pas commencer par un chiffre.",
- "Les noms de variables sont sensibles à la casse (majuscule/minuscules).",
- "",
- "Les instructions de manipulation de variables (MOV, ADD, EQU,",
- "etc.) peuvent travailler avec des variables de n'importe quel nom. Elles",
- "peuvent avoir accès aux accumulateurs des temporisations ou des",
- "compteurs. Cela peut quelquefois être très utile, par exemple si vous",
- "voulez contrôler la valeur d'un compteur ou d'une temporisation dans",
- "une ligne particulière.",
- "",
- "Les variables sont toujours des entiers 16 bits. Leur valeur peut",
- "donc être comprise entre -32768 et 32767 inclus. Les variables sont",
- "toujours signées. Vous pouvez les spécifier de façon littérale comme",
- "des nombres décimaux normaux (0, 1234, -56), vous pouvez aussi les",
- "spécifier en caractères ASCII ('A', 'z') en mettant le caractère entre",
- "des guillemets simples. Vous pouvez utiliser un caractère ASCII dans la",
- "majorité des endroits où vous pouvez utiliser les nombres décimaux.",
- "",
- "En bas de l'écran, vous pouvez voir la liste de tous les objets",
- "utilisés dans votre programme. La liste est automatiquement générée",
- "à partir du programme. La majorité des objets ne necessitent aucune",
- "configuration. Seuls : les objets `Xnom', `Ynom', and `Anom' doivent être",
- "affectés à une broche du micro La première chose à faire est de choisir",
- "la microcontroleur utilisé : Paramères -> Microcontroleur ensuite vous",
- "affectez les broches en faisant un double clic dans la liste.",
- "",
- "Vous pouvez modifier le programme en insérant ou supprimant des",
- "instructions. Le curseur clignote dans la programme pour indiquer",
- "l'instruction courante sélectionnée et le point d'insertion. S'il ne",
- "clignote pas pressez <Tab> ou cliquer sur une instruction, ou vous",
- "pouvez insérer une nouvelle instruction à la droite ou à la gauche",
- "(en série avec), ou au dessous ou au dessus (en parallèle avec) de",
- "l'instruction sélectionnée. Quelques opérations ne sont pas permises ,",
- "par exemple aucune instruction permise à droite de la bobine.",
- "",
- "Le programme démarre avec uniquement une ligne. Vous pouvez ajouter",
- "plusieurs lignes en sélectionnant Insertion -> Ligne avant ou après",
- "dans le menu. Vous pouvez faire un circuit complexe en plaçant plusieurs",
- "branches en parallèle ou en série avec une ligne, mais il est plus clair",
- "de faire plusieurs lignes.",
- "",
- "Une fois votre programme écrit, vous pouvez le tester par simulation,",
- "et le compiler dans un fichier HEX pour le microcontroleur de destination.",
- "",
- "SIMULATION",
- "==========",
- "",
- "Pour entrer dans la mode simulation choisir Simulation -> Simuler",
- "ou presser <Ctrl+M> le programme est affiché différemment en mode",
- "simulation. Les instructions activées sont affichées en rouge vif, les",
- "instructions qui ne le sont pas sont affichées en grisé. Appuyer sur la",
- "barre d'espace pour démarrer l'API pour 1 cycle. Pour faire fonctionner",
- "continuellement en temps réel choisir Simulation ->Démarrer la simulation",
- "en temps réel ou presser <Ctrl+R> L'affichage du programme est mise à",
- "jour en temps réel en fonction des changements d'état des entrées.",
- "",
- "Vous pouvez valider l'état des entrées du programme en faisant un",
- "double clic sur l'entrée dans la liste au bas de l'écran, ou sur le",
- "contact `Xnom' de l'instruction dans le programme, pour avoir le reflet",
- "automatiquement de la validation d'une entrée dans le programme, il",
- "faut que le programme soit en cycle.(le démarrer par <Ctrl+R> ou barre",
- "d'espace pour un seul cycle).",
- "",
- "COMPILER EN CODE NATIF",
- "======================",
- "",
- "Le point final est de générer un fichier .HEX qui sera programmé dans le",
- "microcontroleur que vous avez choisi par Paramètres -> Microcontroleur",
- "Vous devez affecter les broches d'entrées sorties pour chaque 'Xnom'",
- "et 'Ynom'. Vous pouvez faire cela en faisant un double clic sur la nom",
- "de l'objet dans la liste au bas de l'écran. Une boite de dialogue vous",
- "demande de choisir une des broches non affectées dans la liste.",
- "",
- "Vous devez aussi choisir la temps de cycle que voulez utiliser pour",
- "votre application, vous devez aussi choisir la fréquence d'horloge du",
- "processeur. Faire Paramètres -> Paramètres MCU dans le menu. En général,",
- "le temps de cycle peut être laissé à la valeur par défaut (10 ms) qui est",
- "une bonne valeur pour la majorité des applications. Indiquer la fréquence",
- "du quartz utilisé (ou du résonateur céramique ou autres..) et cliquer OK.",
- "",
- "Maintenant vous pouvez créer le fichier pour intégrer dans le",
- "microcontroleur. Choisir Compilation -> Compiler, ou compiler sous...",
- "Si vous avez précédemment compilé votre programme, vous pouvez spécifier",
- "un nom différent de fichier de sortie. Si votre programme ne comporte",
- "pas d'erreur (lié à la structure du programme), LDmicro génére un fichier",
- "IHEX prêt à être programmé dans le chip.",
- "",
- "Utilisez votre logiciel et matériel de programmation habituel pour",
- "charger le fichier HEX dans la microcontroleur. Vérifiez et validez",
- "les bits de configuration (fuses), pour les processeurs PIC16Fxxx ces",
- "bits sont inclus dans le fichier HEX, et la majorité des logiciels de",
- "programmation les valident automatiquement, pour les processeurs AVR ,",
- "vous devez le faire manuellement.",
- "",
- "REFERENCE DES INSTRUCTIONS ",
- "==========================",
- "",
- "> CONTACT, NORMALLEMENT OUVERT Xnom Rnom Ynom",
- " ----] [---- ----] [---- ----] [----",
- "",
- " Si le signal arrivant à cette instruction est FAUX (0) le signal",
- " de sortie est aussi faux (0), s'il est vrai , il sera aussi vrai",
- " en sortie si et uniquement si la broche d'Entrée ou de Sortie",
- " ou de Relais interne est vraie, sinon l'instruction sera fausse.",
- " Cette instruction peut vérifier l'état d'une broche d'entrée, d'une",
- " broche de sortie ou d'un relais interne",
- "",
- " ",
- "> CONTACT, NORMALLEMENT FERME Xnom Rnom Ynom",
- " ----]/[---- ----]/[---- ----]/[----",
- "",
- " Si le signal arrivant à cette instruction est FAUX (0) le signal",
- " de sortie est vrai (1), s'il est vrai , il sera faux en sortie .",
- " Cette instruction peut vérifier l'état d'une broche d'entrée, d'une",
- " broche de sortie ou d'un relais interne. Fonctionne en opposition",
- " par rapport au contact normallement ouvert.",
- "",
- "",
- "> BOBINE, NORMALE Rnom Ynom",
- " ----( )---- ----( )----",
- "",
- " Si le signal arrivant à cette instruction est faux, alors le relais ",
- " interne ou la broche de sortie est faux (mise à zéro). Si le signal",
- " arrivant à cette instruction est vrai(1), alors le relais interne ou",
- " la broche de sortie est validée (mise à 1). Il n'est pas important",
- " d'affecter une variable à une bobine.",
- " Cette instruction est placée le plus à droite dans une séquence.",
- " ",
- "",
- "> BOBINE, INVERSE Rnom Ynom",
- " ----(/)---- ----(/)----",
- "",
- " Si le signal arrivant à cette instruction est vrai, alors le relais ",
- " interne ou la broche de sortie est faux (mise à zéro). Si le signal",
- " arrivant à cette instruction est faux(0), alors le relais interne ou",
- " la broche de sortie est validée (mise à 1). Il n'est pas important ",
- " d'affecter une variable à une bobine.",
- " Cette instruction est placée le plus à droite dans une séquence.",
- "",
- "",
- "> BOBINE, ACCROCHAGE Rnom Ynom",
- " ----(S)---- ----(S)----",
- "",
- " Si le signal arrivant à cette instruction est vrai, alors le",
- " relais interne ou la broche de sortie est validée (mise à 1). Cette",
- " instruction permet de changer l'état d'un relais ou d'une sortie :",
- " uniquement passe à vrai, ou reste vrai si elle était déjà à 1,",
- " elle est typiquement utilisée en combinaison avec une Bobine REMISE",
- " A ZERO.",
- " Cette instruction est placée le plus à droite dans une séquence.",
- "",
- "",
- "> BOBINE, REMISE A ZERO Rnom Ynom",
- " ----(R)---- ----(R)----",
- "",
- " Si le signal arrivant à cette instruction est vrai, alors le relais ",
- " interne ou la sortie est mise à zéro (0), si elle était déjà à 0, ",
- " il n'y a aucun changement, cette instruction change l'état d'une ",
- " sortie uniquement si elle était à 1, cette instruction fonctionne en ",
- " combinaison avec l'instruction ci-dessus Bobine à ACCROCHAGE.",
- " Cette instruction est placée le plus à droite dans une séquence.",
- "",
- "",
- "> TEMPORISATION TRAVAIL Tdon ",
- " -[TON 1.000 s]-",
- "",
- " Quand la signal arrivant à cette instruction passe de faux à vrai",
- " (0 à 1), le signal de sortie attend 1.000 seconde avant de passer",
- " à 1. Quand le signal de commande de cette instruction passe ZERO,",
- " le signal de sortie passe immédiatement à zéro. La tempo est remise",
- " à zéro à chaque fois que l'entrée repasse à zéro. L'entrée doit être",
- " maintenue vraie à 1 pendant au moins 1000 millisecondes consécutives",
- " avant que la sortie ne devienne vraie. le délai est configurable.",
- "",
- " La variable `Tnom' compte depuis zéro en unités de temps de scan.",
- " L'instruction Ton devient vraie en sortie quand la variable du",
- " compteur est plus grande ou égale au delai fixé. Il est possible",
- " de manipuler la variable du compteur en dehors, par exemple par une",
- " instruction MOVE.",
- "",
- "",
- "> TEMPORISATION REPOS Tdoff ",
- " -[TOF 1.000 s]-",
- "",
- " Quand le signal qui arrive à l'instruction passe de l'état vrai",
- " (1) à l'état faux (0), la sortie attend 1.000 s avant de dévenir",
- " faux (0) Quand le signal arrivant à l'instruction passe de l'état",
- " faux à l'état vrai, le signal passe à vrai immédiatement. La",
- " temporisation est remise à zéro à chaque fois que l'entrée devient",
- " fausse. L'entrée doit être maintenue à l'état faux pendant au moins",
- " 1000 ms consécutives avant que la sortie ne passe à l'état faux. La",
- " temporisation est configurable.",
- "",
- " La variable `Tname' compte depuis zéro en unités de temps de scan.",
- " L'instruction Ton devient vraie en sortie quand la variable du",
- " compteur est plus grande ou égale au delai fixé. Il est possible",
- " de manipuler la variable du compteur en dehors, par exemple par une",
- " instruction MOVE.",
- "",
- "",
- "> TEMPORISATION TOTALISATRICE Trto ",
- " -[RTO 1.000 s]-",
- "",
- " Cette instruction prend en compte le temps que l'entrée a été à l'état",
- " vrai (1). Si l'entrée a été vraie pendant au moins 1.000s la sortie",
- " devient vraie (1).L'entrée n'a pas besoin d'être vraie pendant 1000 ms",
- " consécutives. Si l'entrée est vraie pendant 0.6 seconde puis fausse",
- " pendant 2.0 secondes et ensuite vraie pendant 0.4 seconde, la sortie",
- " va devenir vraie. Après être passé à l'état vrai, la sortie reste",
- " vraie quelque soit la commande de l'instruction. La temporisation",
- " doit être remise à zéro par une instruction de RES (reset).",
- "",
- " La variable `Tnom' compte depuis zéro en unités de temps de scan.",
- " L'instruction Ton devient vraie en sortie quand la variable du",
- " compteur est plus grande ou égale au delai fixé. Il est possible",
- " de manipuler la variable du compteur en dehors, par exemple par une",
- " instruction MOVE.",
- "",
- "",
- "> RES Remise à Zéro Trto Citems",
- " ----{RES}---- ----{RES}----",
- "",
- " Cette instruction fait un remise à zéro d'une temporisation ou d'un",
- " compteur. Les tempos TON et TOF sont automatiquement remisent à zéro",
- " lorsque leurs entrées deviennent respectivement fausses ou vraies,",
- " RES n'est pas donc pas nécessaire pour ces tempos. Les tempos RTO",
- " et les compteurs décompteurs CTU / CTD ne sont pas remis à zéro",
- " automatiquement, il faut donc utiliser cette instruction. Lorsque",
- " l'entrée est vraie , le compteur ou la temporisation est remis à",
- " zéro. Si l'entrée reste à zéro, aucune action n'est prise.",
- " Cette instruction est placée le plus à droite dans une séquence.",
- "",
- "",
- "> FRONT MONTANT _",
- " --[OSR_/ ]--",
- "",
- " La sortie de cette instruction est normallement fausse. Si",
- " l'instruction d'entrée est vraie pendant ce scan et qu'elle était",
- " fausse pendant le scan précédent alors la sortie devient vraie. Elle",
- " génére une impulsion à chaque front montant du signal d'entrée. Cette",
- " instruction est utile si vous voulez intercepter le front montant",
- " du signal.",
- "",
- "",
- "> FRONT DESCENDANT _",
- " --[OSF \\_]--",
- "",
- " La sortie de cette instruction est normallement fausse. Si",
- " l'instruction d'entrée est fausse (0) pendant ce scan et qu'elle",
- " était vraie (1) pendant le scan précédent alors la sortie devient",
- " vraie. Elle génére une impulsion à chaque front descendant du signal",
- " d'entrée. Cette instruction est utile si vous voulez intercepter le",
- " front descendant d'un signal.",
- "",
- "",
- "> COURT CIRCUIT (SHUNT), CIRCUIT OUVERT",
- " ----+----+---- ----+ +----",
- "",
- " Une instruction shunt donne en sortie une condition qui est toujours ",
- " égale à la condition d'entrée. Une instruction Circuit Ouvert donne ",
- " toujours une valeur fausse en sortie.",
- " Ces instructions sont en général utilisées en phase de test.",
- "",
- "",
- "> RELAIS DE CONTROLE MAITRE",
- " -{MASTER RLY}-",
- "",
- " Par défaut, la condition d'entrée d'une ligne est toujours vraie. Si",
- " une instruction Relais de contrôle maitre est exécutée avec une",
- " valeur d'entrée fausse, alors toutes les lignes suivantes deviendront",
- " fausses. Ceci va continuer jusqu'à la rencontre de la prochaine",
- " instruction relais de contrôle maitre qui annule l'instruction de",
- " départ. Ces instructions doivent toujours être utilisées par paires:",
- " une pour commencer (qui peut être sous condition) qui commence la",
- " partie déactivée et une pour la terminer.",
- "",
- "",
- "> MOUVOIR {destvar := } {Tret := }",
- " -{ 123 MOV}- -{ srcvar MOV}-",
- "",
- " Lorsque l'entrée de cette instruction est vraie, elle va mettre la",
- " variable de destination à une valeur égale à la variable source ou à",
- " la constante source. Quand l'entrée de cette instruction est fausse",
- " rien ne se passe. Vous pouvez affecter n'importe quelle variable",
- " à une instruction de déplacement, ceci inclu l'état de variables",
- " compteurs ou temporisateurs qui se distinguent par l'entête T ou",
- " C. Par exemple mettre 0 dans Tsauvegardé équivaut à faire une RES",
- " de la temporisation. Cette instruction doit être complétement à",
- " droite dans une séquence.",
- "",
- "",
- "> OPERATIONS ARITHMETIQUES {ADD kay :=} {SUB Ccnt :=}",
- " -{ 'a' + 10 }- -{ Ccnt - 10 }-",
- "",
- "> {MUL dest :=} {DIV dv := }",
- " -{ var * -990 }- -{ dv / -10000}-",
- "",
- " Quand l'entrée de cette instruction est vraie, elle place en",
- " destination la variable égale à l'expression calculée. Les opérandes",
- " peuvent être des variables (en incluant les variables compteurs et",
- " tempos) ou des constantes. Ces instructions utilisent des valeurs 16",
- " bits signées. Il faut se souvenir que le résultat est évalué à chaque",
- " cycle tant que la condition d'entrée est vraie. Si vous incrémentez",
- " ou décrémentez une variable (si la variable de destination est",
- " aussi une des opérandes), le résultat ne sera pas celui escompté,",
- " il faut utiliser typiquement un front montant ou descendant de la",
- " condition d'entrée qui ne sera évalué qu'une seule fois. La valeur",
- " est tronquée à la valeur entière. Cette instruction doit être",
- " complétement à droite dans une séquence.",
- "",
- "",
- "> COMPARER [var ==] [var >] [1 >=]",
- " -[ var2 ]- -[ 1 ]- -[ Ton]-",
- "",
- "> [var /=] [-4 < ] [1 <=]",
- " -[ var2 ]- -[ vartwo]- -[ Cup]-",
- "",
- " Si l'entrée de cette instruction est fausse alors la sortie est",
- " fausse. Si l'entrée est vraie, alors la sortie sera vraie si et",
- " uniquement si la condition de sortie est vraie. Cette instruction",
- " est utilisée pour comparer (Egalité, plus grand que,plus grand ou",
- " égal à, inégal, plus petit que, plus petit ou égal à) une variable à",
- " une autre variable, ou pour comparer une variable avec une constante",
- " 16 bits signée.",
- "",
- "",
- "> COMPTEUR DECOMPTEUR Cnom Cnom",
- " --[CTU >=5]-- --[CTD >=5]--",
- "",
- " Un compteur incrémente ( Compteur CTU, count up) ou décrémente",
- " (Décompteur CTD, count down) une variable à chaque front montant de",
- " la ligne en condition d'entrée (CAD quand la signal passe de l'état",
- " 0 à l'état 1. La condition de sortie du compteur est vraie si la",
- " variable du compteur est égale ou plus grande que 5 (dans l'exemple),",
- " et faux sinon. La condition de sortie de la ligne peut être vraie,",
- " même si la condition d'entrée est fausse, cela dépend uniquement de la",
- " valeur de la variable du compteur. Vous pouvez avoir un compteur ou",
- " un décompteur avec le même nom, qui vont incréménter ou decrémenter",
- " une variable. L'instruction Remise à Zéro permet de resetter un",
- " compteur (remettre à zéro), il est possible de modifier par des",
- " opérations les variables des compteurs décompteurs.",
- "",
- "",
- "> COMPTEUR CYCLIQUE Cnom",
- " --{CTC 0:7}--",
- "",
- " Un compteur cyclique fonctionne comme un compteur normal",
- " CTU, exception faite, lorsque le compteur arrive à sa",
- " limite supérieure, la variable du compteur revient à 0. dans",
- " l'exemple la valeur du compteur évolue de la façon suivante :",
- " 0,1,2,4,5,6,7,0,1,2,3,4,5,6,7,0,1,3,4,5,etc. Ceci est très pratique",
- " en conbinaison avec des intructions conditionnelles sur la variable",
- " Cnom. On peut utiliser ceci comme un séquenceur, l'horloge du compteur",
- " CTC est validée par la condition d'entrée associée à une instruction",
- " de front montant.",
- " Cette instruction doit être complétement à droite dans une séquence.",
- " ",
- "",
- "> REGISTRE A DECALAGE {SHIFT REG }",
- " -{ reg0..3 }-",
- "",
- " Un registre à décalage est associé avec un jeu de variables. Le",
- " registre à décalage de l'exemple donné est associé avec les",
- " variables`reg0', `reg1', `reg2', and `reg3'. L'entrée du registre à",
- " décalage est `reg0'. A chaque front montant de la condition d'entrée",
- " de la ligne, le registre à décalage va décaler d'une position à",
- " droite. Ce qui donne `reg3 := reg2', `reg2 := reg1'. et `reg1 :=",
- " reg0'.`reg0' est à gauche sans changement. Un registre à décalage",
- " de plusieurs éléments peut consommer beaucoup de place en mémoire.",
- " Cette instruction doit être complétement à droite dans une séquence.",
- "",
- "",
- "> TABLEAU INDEXE {dest := }",
- " -{ LUT[i] }-",
- "",
- " Un tableau indexé et un groupe ordonné de n valeurs Quand la condition",
- " d'entrée est vraie, la variable entière `dest' est mise à la valeur",
- " correspondand à l'index i du tableau. L'index est compris entre 0 et",
- " (n-1). Le comportement de cette instruction est indéfini si l'index",
- " est en dehors du tableau",
- " Cette instruction doit être complétement à droite dans une séquence.",
- "",
- "",
- "> TABLEAU ELEMENTS LINEAIRES {yvar := }",
- " -{ PWL[xvar] }-",
- "",
- " C'est une bonne méthode pour évaluer de façon approximative une",
- " fonction compliquée ou une courbe. Très pratique par exemple pour",
- " appliquer une courbe de calibration pour linéariser tension de sortie",
- " d'un capteur dans une unité convenable.",
- "",
- " Supposez que vous essayez de faire une fonction pour convertir une",
- " variable d'entrée entière, x, en une variable de sortie entière, y,",
- " vous connaissez la fonction en différents points, par exemple vous",
- " connaissez :",
- "",
- " f(0) = 2",
- " f(5) = 10",
- " f(10) = 50",
- " f(100) = 100",
- "",
- " Ceci donne les points",
- "",
- " (x0, y0) = ( 0, 2)",
- " (x1, y1) = ( 5, 10)",
- " (x2, y2) = ( 10, 50)",
- " (x3, y3) = (100, 100)",
- "",
- " liés à cette courbe. Vous pouvez entrer ces 4 points dans un",
- " tableau associé à l'instruction tableau d'éléments linéaires. Cette",
- " instruction regarde la valeur de xvar et fixe la valeur de yvar",
- " correspondante. Par exemple si vous mettez xvar = 10 , l'instruction",
- " validera yvar = 50.",
- "",
- " Si vous mettez une instruction avec une valeur xvar entre deux valeurs",
- " de x du tableau (et par conséquence aussi de yvar). Une moyenne",
- " proportionnelle entre les deux valeurs , précédente et suivante de",
- " xvar et de la valeur liée yvar, est effectuée. Par exemple xvar =",
- " 55 donne en sortie yvar = 75 Les deux points xvar (10.50) et yvar",
- " (50,75) , 55 est la moyenne entre 10 et 100 et 75 est la moyenne",
- " entre 50 et 100, donc (55,75) sont liés ensemble par une ligne de",
- " connection qui connecte ces deux points.",
- "",
- " Ces points doivent être spécifiés dans l'ordre ascendant des",
- " coordonnées x. Il peut être impossible de faire certaines opérations",
- " mathématiques nécessaires pour certains tableaux, utilisant des",
- " entiers 16 bits. Dans ce LDmicro va provoquer une alarme. Ce tableau",
- " va provoquer une erreur :",
- "",
- " (x0, y0) = ( 0, 0)",
- " (x1, y1) = (300, 300)",
- "",
- " Vous pouvez supprimer ces erreurs en diminuant l'écart entre les",
- " points du tableau, par exemple ce tableau est équivalent à celui ci",
- " dessus , mais ne provoque pas d'erreur:",
- "",
- " (x0, y0) = ( 0, 0)",
- " (x1, y1) = (150, 150)",
- " (x2, y2) = (300, 300)",
- "",
- " Il n'est pratiquement jamais nécessaire d'utiliser plus de 5 ou",
- " 6 points. Ajouter des points augmente la taille du code et diminue",
- " sa vitesse d'exécution. Le comportement, si vous passez une valeur",
- " à xvar plus grande que la plus grande valeur du tableau , ou plus",
- " petit que la plus petite valeur, est indéfini.",
- " Cette instruction doit être complétement à droite dans une séquence.",
- "",
- "",
- "> LECTURE CONVERTISSEUR A/D Anom",
- " --{READ ADC}--",
- "",
- " LDmicro peut générer du code pour utiliser les convertisseurs A/D",
- " contenus dans certains microcontroleurs. Si la condition d'entrée",
- " de l'instruction est vraie, alors une acquisition du convertisseur",
- " A/D est éffectuée et stockée dans la variable Anom. Cette variable",
- " peut être par la suite traitée comme les autres variables par les",
- " différentes opérations arithmétiques ou autres. Vous devez affecter",
- " une broche du micro à la variable Anom de la même façon que pour",
- " les entrées et sorties digitales par un double clic dans la list",
- " affichée au bas de l'écran. Si la condition d'entrée de la séquence",
- " est fausse la variable Anom reste inchangée.",
- "",
- " Pour tous les circuits supportés actuellement, 0 volt en entrée",
- " correspond à une lecture ADC de 0, et une valeur égale à VDD (la",
- " tension d'alimentation ) correspond à une lecture ADC de 1023. Si",
- " vous utilisez un circuit AVR, vous devez connecter Aref à VDD.",
- "",
- " Vous pouvez utiliser les opérations arithmétiques pour mettre à ",
- " l'échelle les lectures effectuées dans l'unité qui vous est la plus ",
- " appropriée. Mais souvenez vous que tous les calculs sont faits en ",
- " utilisant les entiers.",
- "",
- " En général, toutes les broches ne sont pas utilisables pour les ",
- " lecture de convertisseur A/D. Le logiciel ne vous permet pas ",
- " d'affecter une broche non A/D pour une entrée convertisseur.",
- " Cette instruction doit être complétement à droite dans une séquence.",
- "",
- "",
- "> FIXER RAPPORT CYCLE PWM duty_cycle",
- " -{PWM 32.8 kHz}-",
- "",
- " LDmicro peut générer du code pour utiliser les périphériques PWM",
- " contenus dans certains microcontroleurs. Si la condition d'entrée",
- " de cette instruction est vraie, le rapport de cycle du périphérique",
- " PWM va être fixé à la valeur de la variable Rapport de cycle PWM.",
- " Le rapport de cycle est un nombre compris entre 0 (toujours au",
- " niveau bas) et 100 (toujours au niveau haut). Si vous connaissez la",
- " manière dont les périphériques fonctionnent vous noterez que LDmicro",
- " met automatiquement à l'échelle la variable du rapport de cycle en",
- " pourcentage de la période d'horloge PWM.",
- "",
- " Vous pouvez spécifier la fréquence de sortie PWM, en Hertz. Le",
- " fréquence que vous spécifiez peut ne pas être exactement accomplie, en",
- " fonction des divisions de la fréquence d'horloge du microcontroleur,",
- " LDmicro va choisir une fréquence approchée. Si l'erreur est trop",
- " importante, il vous avertit.Les vitesses rapides sont au détriment",
- " de la résolution. Cette instruction doit être complétement à droite",
- " dans une séquence.",
- "",
- " Le runtime du language à contacts consomme un timers (du micro) pour",
- " le temps de cycle, ce qui fait que le PWM est uniquement possible",
- " avec des microcontroleurs ayant au moins deux timers utilisables.",
- " PWM utilise CCP2 (pas CCP1) sur les PIC16F et OC2(pas OC1) sur les",
- " Atmel AVR.",
- "",
- "> METTRE PERSISTANT saved_var",
- " --{PERSIST}--",
- "",
- " Quand la condition d'entrée de cette instruction est vraie, la",
- " variable entière spécifiée va être automatiquement sauvegardée en",
- " EEPROM, ce qui fait que cette valeur persiste même après une coupure",
- " de l'alimentation du micro. Il n'y a pas à spécifier ou elle doit",
- " être sauvegardée en EEPROM, ceci est fait automatiquement, jusqu'a",
- " ce quelle change à nouveau. La variable est automatiquement chargée",
- " à partir de l'EEPROM suite à un reset à la mise sous tension.",
- "",
- " Si une variables, mise persistante, change fréquemment, l'EEPROM de",
- " votre micro peut être détruite très rapidement, Le nombre de cycles",
- " d'écriture dans l'EEPROM est limité à environ 100 000 cycles Quand",
- " la condition est fausse, rien n'apparait. Cette instruction doit",
- " être complétement à droite dans une séquence.",
- "",
- "",
- "> RECEPTION UART (SERIE) var",
- " --{UART RECV}--",
- "",
- " LDmicro peut générer du code pour utiliser l'UART, existant dans",
- " certains microcontroleurs. Sur les AVR, avec de multiples UART,",
- " uniquement l'UART1 est utilisable (pas l'UART0). Configurer la",
- " vitesse en utilisant -> Paramètres -> Paramètres MCU. Toutes les",
- " vitesses de liaison ne sont pas utilisables avec tous les quartz de",
- " toutyes les fréquences. Ldmicro vous avertit dans ce cas.",
- "",
- " Si la condition d'entrée de cette instruction est fausse, rien ne se",
- " passe. Si la condition d'entrée est vraie, elle essaie de recevoir",
- " un caractère en provenance de l'UART. Si aucun caractère n'est lu",
- " alors la condition de sortie devient fausse. Si un caractère est",
- " lu la valeur ASCII est stockée dans 'var' et la condition de sortie",
- " est vraie pour un seul cycle API.",
- "",
- "",
- "> EMMISION UART (SERIE) var",
- " --{UART SEND}--",
- "",
- " LDmicro peut générer du code pour utiliser l'UART, existant dans ",
- " certains microcontroleurs. Sur les AVR, avec de multiples UART, ",
- " uniquement l'UART1 est utilisable (pas l'UART0). Configurer la ",
- " vitesse en utilisant -> Paramètres -> Paramètres MCU. Toutes les ",
- " vitesses de liaison ne sont pas utilisables avec tous les quartz ",
- " de toutyes les fréquences. Ldmicro vous avertit dans ce cas.",
- "",
- " Si la condition d'entrée de cette instruction est fausse, rien ne",
- " se passe. Si la condition d'entrée est vraie alors cette instruction",
- " écrit un seul caractère vers l'UART. La valeur ASCII du caractère à",
- " transmettre doit avoir été stocké dans 'var' par avance. La condition",
- " de sortie de la séquence est vraie, si l'UART est occupée (en cours",
- " de transmission d'un caractère), et fausse sinon.",
- "",
- " Rappelez vous que les caractères mettent un certain temps pour être",
- " transmis. Vérifiez la condition de sortie de cette instruction pour",
- " vous assurer que le premier caractère à bien été transmis, avant",
- " d'essayer d'envoyer un second caractère, ou utiliser une temporisation",
- " pour insérer un délai entre caractères; Vous devez uniquement vérifier",
- " que la condition d'entrée est vraie (essayez de transmettre un",
- " caractère) quand la condition de sortie est fausse(UART non occuppée).",
- "",
- " Regardez l'instruction Chaine formattée(juste après) avant d'utiliser",
- " cette instruction, elle est plus simple à utiliser, et dans la",
- " majorité des cas, est capable de faire ce dont on a besoin.",
- "",
- "",
- "> CHAINE FORMATTEE SUR UART var",
- " -{\"Pression: \\3\\r\\n\"}-",
- "",
- " LDmicro peut générer du code pour utiliser l'UART, existant dans ",
- " certains microcontroleurs. Sur les AVR, avec de multiples UART, ",
- " uniquement l'UART1 est utilisable (pas l'UART0). Configurer la ",
- " vitesse en utilisant -> Paramètres -> Paramètres MCU. Toutes les ",
- " vitesses de liaison ne sont pas utilisables avec tous les quartz ",
- " de toutyes les fréquences. Ldmicro vous avertit dans ce cas.",
- "",
- " Quand la condition d'entrée de cette instruction passe de faux à vrai,",
- " elle commence à envoyer une chaine compléte vers le port série. Si",
- " la chaine comporte la séquence spéciale '3', alors cette séquence",
- " va être remplacée par la valeur de 'var', qui est automatiquement",
- " converti en une chaine. La variable va être formattée pour prendre",
- " exactement trois caractères; par exemple si var = 35, la chaine",
- " exacte qui va être \"imprimée\" sera 'Pression: 35\\r\\n' (notez les",
- " espaces supplémentaires). Si au lieu de cela var = 1432 , la sortie",
- " est indéfinie parceque 1432 comporte plus de 3 digits. Dans ce cas",
- " vous devez nécessairement utiliser '\\4' à la place.",
- "",
- " Si la variable peut être négative, alors utilisez '\\-3d' (ou `\\-4d'",
- " etc.) à la place. Ceci oblige LDmicro à imprimer un espace d'entête",
- " pour les nombres positifs et un signe moins d'entête pour les chiffres",
- " négatifs.",
- "",
- " Si de multiples instructions de chaines formattées sont activées au",
- " même moment (ou si une est activée avant de finir la précédente)",
- " ou si ces instructions sont imbriquées avec des instructions TX",
- " (transmission), le comportement est indéfini.",
- "",
- " Il est aussi possible d'utiliser cette instruction pour sortie une",
- " chaine fixe, sans l'intervention d'une variable en valeur entière",
- " dans le texte qui est envoyée sur la ligne série. Dans ce cas,",
- " simplement ne pas inclure de séquence spéciale Escape.",
- "",
- " Utiliser `\\\\' pour l'anti-slash. en addition à une séquence escape ",
- " pour intervenir sue une variables entière, les caractères de ",
- " contrôles suivants sont utilisables :",
- " ",
- " * \\r -- retour en début de ligne",
- " * \\n -- nouvelle ligne",
- " * \\f -- saut de page",
- " * \\b -- retour arrière",
- " * \\xAB -- caractère avec valeur ASCII 0xAB (hex)",
- "",
- " La condition de sortie de cette instruction est vraie quand elle",
- " transmet des données, sinon elle est fausse. Cette instruction",
- " consomme une grande quantité de mémoire, elle doit être utilisée",
- " avec modération. L'implémentation présente n'est pas efficace, mais",
- " une meilleure implémentation demanderait une modification de tout",
- " le reste.",
- "",
- "NOTE CONCERNANT LES MATHS",
- "=========================",
- "",
- "Souvenez vous que LDmicro travaille uniquement en mathématiques entiers",
- "16 bits. Ce qui fait que le résultat final de même que tous les calculs",
- "mêmes intermédiaires seront compris entre -32768 et 32767.",
- "",
- "Par exemple, si vous voulez calculer y = (1/x)*1200,ou x est compris",
- "entre 1 et 20, ce qui donne un résultat entre 1200 et 60,le résultat est",
- "bien à l'intérieur d'un entier 16 bits, il doit donc être théoriquement",
- "possible de faire le calcul. Nous pouvons faire le calcul de deux façons",
- "d'abord faire 1/x et ensuite la multiplication:",
- "",
- " || {DIV temp :=} ||",
- " ||---------{ 1 / x }----------||",
- " || ||",
- " || {MUL y := } ||",
- " ||----------{ temp * 1200}----------||",
- " || ||",
- "",
- "Ou uniquement faire simplement la division en une seule ligne :",
- "",
- " || {DIV y :=} ||",
- " ||-----------{ 1200 / x }-----------||",
- "",
- "Mathématiquement c'est identique, la première donne y = 0 , c'est à dire",
- "une mauvais résultat, si nous prenons par exemple x = 3 , 1/x = 0.333 mais",
- "comme il s'agit d'un entier, la valeur pour Temp est de 0 et 0*1200 = 0 ",
- "donc résultat faux.Dans le deuxième cas, il n'y a pas de résultat ",
- "intermédiaire et le résultat est correct dans tous les cas.",
- "",
- "Si vous trouvez un problème avec vos calculs mathématiques, vérifiez les",
- "résultats intermédiaires, si il n'y a pas de dépassement de capacités par",
- "rapports aux valeurs entières. (par exemple 32767 + 1 = -32768). Quand",
- "cela est possible essayer de choisir des valeurs entre -100 et 100.",
- "",
- "Vous pouvez utiliser un certain facteur de multiplication ou division pour ",
- "mettre à l'echelle les variables lors de calculs par exemple : pour mettre",
- "mettre à l'echelle y = 1.8*x , il est possible de faire y =(9/5)*x ",
- "(9/5 = 1.8) et coder ainsi y = (9*x)/5 en faisant d'abord la multiplication",
- "",
- " || {MUL temp :=} ||",
- " ||---------{ x * 9 }----------||",
- " || ||",
- " || {DIV y :=} ||",
- " ||-----------{ temp / 5 }-----------||",
- "",
- "Ceci fonctionne tant que x < (32767 / 9), or x < 3640. Pour les grandes ",
- "valeurs de x,la variable `temp' va se mettre en dépassement. Ceci est ",
- "similaire vers la limite basse de x.",
- "",
- "",
- "STYLE DE CODIFICATION",
- "=====================",
- "",
- "Il est permis d'avoir plusieurs bobines en parallèle, contrôlées par",
- "une simple ligne comme ci-dessous :",
- "",
- " || Xa Ya ||",
- " 1 ||-------] [--------------( )-------||",
- " || ||",
- " || Xb Yb ||",
- " ||-------] [------+-------( )-------||",
- " || | ||",
- " || | Yc ||",
- " || +-------( )-------||",
- " || ||",
- "",
- "à la place de ceci :",
- "",
- " || Xa Ya ||",
- " 1 ||-------] [--------------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || Xb Yb ||",
- " 2 ||-------] [--------------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || Xb Yc ||",
- " 3 ||-------] [--------------( )-------||",
- " || ||",
- "",
- "Il est permis théoriquement d'écrire un programme avec une séquence très",
- "importante et de ne pas utiliser plusieurs lignes pour la faire. En",
- "pratique c'est une mauvaise idée, à cause de la compléxité que cela",
- "peut engendrer et plus difficile à éditer sans effacer et redessiner un",
- "certain nombre d'éléments de logique.",
- "",
- "Néanmoins, c'est une bonne idée de regrouper différents éléments d'un bloc",
- "logique dans une seule séquence. Le code généré est identique dans les",
- "deux cas, et vous pouvez voir ce que fait la séquence dans le diagramme",
- "à contacts.",
- "",
- " * * *",
- "",
- "En général, il est considéré comme mauvais d'écrire du code dont la",
- "sortie dépend de l'ordre d'exécution. Exemple : ce code n'est pas très",
- "bon lorsque xa et xb sont vrai en même temps :",
- "",
- " || Xa {v := } ||",
- " 1 ||-------] [--------{ 12 MOV}--||",
- " || ||",
- " || Xb {v := } ||",
- " ||-------] [--------{ 23 MOV}--||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || [v >] Yc ||",
- " 2 ||------[ 15]-------------( )-------||",
- " || ||",
- "",
- "Ci-dessous un exemple pour convertir 4 bits Xb3:0 en un entier :",
- "",
- " || {v := } ||",
- " 3 ||-----------------------------------{ 0 MOV}--||",
- " || ||",
- " || Xb0 {ADD v :=} ||",
- " ||-------] [------------------{ v + 1 }-----------||",
- " || ||",
- " || Xb1 {ADD v :=} ||",
- " ||-------] [------------------{ v + 2 }-----------||",
- " || ||",
- " || Xb2 {ADD v :=} ||",
- " ||-------] [------------------{ v + 4 }-----------||",
- " || ||",
- " || Xb3 {ADD v :=} ||",
- " ||-------] [------------------{ v + 8 }-----------||",
- " || ||",
- "",
- "Si l'instruction MOV est déplacée en dessous des instructions ADD, la",
- "valeur de la variable v, quand elle est lue autrepart dans le programme,",
- "serait toujours 0. La sortie du code dépend alors de l'ordre d'évaluations",
- "des instructions. Ce serait possible de modifier ce code pour éviter cela,",
- "mais le code deviendrait très encombrant.",
- "",
- "DEFAUTS",
- "=======",
- "",
- "LDmicro ne génére pas un code très efficace; il est lent à exécuter et",
- "il est gourmand en Flash et RAM. Un PIC milieu de gamme ou un AVR peut",
- "tout de même faire ce qu'un petit automate peut faire.",
- "",
- "La longueur maximum des noms de variables est très limitée, ceci pour",
- "être intégrée correctement dans le diagramme logique, je ne vois pas de",
- "solution satisfaisante pour solutionner ce problème.",
- "",
- "Si votre programme est trop important, vitesse exécution, mémoire",
- "programme ou contraintes de mémoire de données pour le processeur que vous",
- "avez choisi, il n'indiquera probablement pas d'erreur. Il se blocquera",
- "simplement quelque part.",
- "",
- "Si vous êtes programmeur négligent dans les sauvegardes et les",
- "chargements, il est possible qu'un crash se produise ou exécute un code",
- "arbitraire corrompu ou un mauvais fichier .ld .",
- "",
- "SVP, faire un rapport sur les bogues et les demandes de modifications.",
- "",
- "Thanks to:",
- " * Marcelo Solano, for reporting a UI bug under Win98",
- " * Serge V. Polubarjev, for not only noticing that RA3:0 on the",
- " PIC16F628 didn't work but also telling me how to fix it",
- " * Maxim Ibragimov, for reporting and diagnosing major problems",
- " with the till-then-untested ATmega16 and ATmega162 targets",
- " * Bill Kishonti, for reporting that the simulator crashed when the",
- " ladder logic program divided by zero",
- " * Mohamed Tayae, for reporting that persistent variables were broken",
- " on the PIC16F628",
- " * David Rothwell, for reporting several user interface bugs and a",
- " problem with the \"Export as Text\" function",
- "",
- "Particular thanks to Marcel Vaufleury, for this translation (of both",
- "the manual and the program's user interface) into French.",
- "",
- "",
- "COPYING, AND DISCLAIMER",
- "=======================",
- "",
- "DO NOT USE CODE GENERATED BY LDMICRO IN APPLICATIONS WHERE SOFTWARE",
- "FAILURE COULD RESULT IN DANGER TO HUMAN LIFE OR DAMAGE TO PROPERTY. THE",
- "AUTHOR ASSUMES NO LIABILITY FOR ANY DAMAGES RESULTING FROM THE OPERATION",
- "OF LDMICRO OR CODE GENERATED BY LDMICRO.",
- "",
- "This program is free software: you can redistribute it and/or modify it",
- "under the terms of the GNU General Public License as published by the",
- "Free Software Foundation, either version 3 of the License, or (at your",
- "option) any later version.",
- "",
- "This program is distributed in the hope that it will be useful, but",
- "WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY",
- "or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License",
- "for more details.",
- "",
- "You should have received a copy of the GNU General Public License along",
- "with this program. If not, see <http://www.gnu.org/licenses/>.",
- "",
- "",
- "Jonathan Westhues",
- "",
- "Rijswijk -- Dec 2004",
- "Waterloo ON -- Jun, Jul 2005",
- "Cambridge MA -- Sep, Dec 2005",
- " Feb, Mar 2006",
- "",
- "Email: user jwesthues, at host cq.cx",
- "",
- "",
- NULL
-};
-#endif
-
-#ifdef LDLANG_TR
-char *HelpTextTr[] = {
- "",
- "KULLANIM KİTAPÇIĞI",
- "==================",
- "LDMicro desteklenen MicroChip PIC16 ve Atmel AVR mikrokontrolcüler için ",
- "gerekli kodu üretir. Bu iş için kullanılabilecek değişik programlar vardır.",
- "Örneğin BASIC, C, assembler gibi. Bu programlar kendi dillerinde yazılmış",
- "programları işlemcilerde çalışabilecek dosyalar haline getirirler.",
- "",
- "PLC'de kullanılan dillerden biri ladder diyagramıdır. Aşağıda LDMicro ile",
- "yazılmış basit bir program görülmektedir.",
- "",
- " || ||",
- " || Xbutton1 Tdon Rchatter Yred ||",
- " 1 ||-------]/[---------[TON 1.000 s]-+-------]/[--------------( )-------||",
- " || | ||",
- " || Xbutton2 Tdof | ||",
- " ||-------]/[---------[TOF 2.000 s]-+ ||",
- " || ||",
- " || ||",
- " || ||",
- " || Rchatter Ton Tnew Rchatter ||",
- " 2 ||-------]/[---------[TON 1.000 s]----[TOF 1.000 s]---------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " ||------[END]---------------------------------------------------------||",
- " || ||",
- " || ||",
- "",
- "(TON=turn-on gecikme; TOF-turn-off gecikme. --] [-- girişler, diğer bir ",
- "deyişle kontaklardır. --( )-- ise çıkışlardır. Bunlar bir rölenin bobini ",
- "gibi davranırlar. Ladder diyagramı ile ilgili bol miktarda kaynak internet",
- "üzerinde bulunmaktadır. Burada LDMicro'ya has özelliklerden bahsedeceğiz.",
- "",
- "LDmicro ladder diyagramını PIC16 veya AVR koduna çevirir. Aşağıda desteklenen",
- "işlemcilerin listesi bulunmaktadır:",
- " * PIC16F877",
- " * PIC16F628",
- " * PIC16F876 (denenmedi)",
- " * PIC16F88 (denenmedi)",
- " * PIC16F819 (denenmedi)",
- " * PIC16F887 (denenmedi)",
- " * PIC16F886 (denenmedi)",
- " * ATmega128",
- " * ATmega64",
- " * ATmega162 (denenmedi)",
- " * ATmega32 (denenmedi)",
- " * ATmega16 (denenmedi)",
- " * ATmega8 (denenmedi)",
- "",
- "Aslında daha fazla PIC16 ve AVR işlemci desteklenebilir. Ancak test ettiklerim",
- "ve desteklediğini düşündüklerimi yazdım. Örneğin PIC16F648 ile PIC16F628 ",
- "arasında fazla bir fark bulunmamaktadır. Eğer bir işlemcinin desteklenmesini",
- "istiyorsanız ve bana bildirirseniz ilgilenirim.",
- "",
- "LDMicro ile ladder diyagramını çizebilir, devrenizi denemek için gerçek zamanlı ",
- "simülasyon yapabilirsiniz. Programınızın çalıştığından eminseniz programdaki ",
- "giriş ve çıkışlara mikrokontrolörün bacaklarını atarsınız. İşlemci bacakları ",
- "belli olduktan sonra programınızı derleyebilirsiniz. Derleme sonucunda oluşan",
- "dosya .hex dosyasıdır. Bu dosyayı PIC/AVR programlayıcı ile işlemcinize kaydedersiniz.",
- "PIC/AVR ile uğraşanlar konuya yabancı değildir.",
- "",
- "",
- "LDMicro ticari PLC programları gibi tasarlanmıştır. Bazı eksiklikler vardır. ",
- "Kitapçığı dikkatlice okumanızı tavsiye ederim. Kullanım esnasında PLC ve ",
- "PIC/AVR hakkında temel bilgilere sahip olduğunuz düşünülmüştür.",
- "",
- "DİĞER AMAÇLAR",
- "==================",
- "",
- "ANSI C kodunu oluşturmak mümkündür. C derleyicisi olan herhangi bir",
- "işlemci için bu özellikten faydalanabilirsiniz. Ancak çalıştırmak için ",
- "gerekli dosyaları siz sağlamalısınız. Yani, LDMicro sadece PlcCycle()",
- "isimli fonksiyonu üretir. Her döngüde PlcCycle fonksiyonunu çağırmak, ve",
- "PlcCycle() fonksiyonunun çağırdığı dijital girişi yazma/okuma vs gibi",
- "G/Ç fonksiyonları sizin yapmanız gereken işlemlerdir.",
- "Oluşturulan kodu incelerseniz faydalı olur.",
- "",
- "KOMUT SATIRI SEÇENEKLERİ",
- "========================",
- "",
- "Normal şartlarda ldmicro.exe komut satırından seçenek almadan çalışır.",
- "LDMicro'ya komut satırından dosya ismi verebilirsiniz. Örneğin;komut",
- "satırından 'ldmicro.exe asd.ld' yazarsanız bu dosya açılmaya çalışırlır.",
- "Dosya varsa açılır. Yoksa hata mesajı alırsınız. İsterseniz .ld uzantısını",
- "ldmicro.exe ile ilişkilendirirseniz .ld uzantılı bir dosyayı çift tıklattığınızda",
- "bu dosya otomatik olarak açılır. Bkz. Klasör Seçenekleri (Windows).",
- "",
- "`ldmicro.exe /c src.ld dest.hex', şeklinde kullanılırsa src.ld derlenir",
- "ve hazırlanan derleme dest.hex dosyasına kaydedilir. İşlem bitince LDMicro kapanır.",
- "Oluşabilecek tüm mesajlar konsoldan görünür.",
- "",
- "TEMEL BİLGİLER",
- "==============",
- "",
- "LDMicro açıldığında boş bir program ile başlar. Varolan bir dosya ile başlatırsanız",
- "bu program açılır. LDMicro kendi dosya biçimini kullandığından diğer dosya",
- "biçimlerinden dosyaları açamazsınız.",
- "",
- "Boş bir dosya ile başlarsanız ekranda bir tane boş satır görürsünüz. Bu satıra",
- "komutları ekleyebilir, satır sayısını artırabilirsiniz. Satırlara Rung denilir.",
- "Örneğin; Komutlar->Kontak Ekle diyerek bir kontak ekleyebilirsiniz. Bu kontağa",
- "'Xnew' ismi verilir. 'X' bu kontağın işlemcinin bacağına denk geldiğini gösterir.",
- "Bu kontağa derlemeden önce isim vermeli ve mikrokontrolörün bir bacağı ile",
- "eşleştirmelisiniz. Eşleştirme işlemi içinde önce işlemciyi seçmelisiniz.",
- "Elemanların ilk harfi o elemanın ne olduğu ile ilgilidir. Örnekler:",
- "",
- " * Xname -- mikrokontrolördeki bir giriş bacağı",
- " * Yname -- mikrokontrolördeki bir çıkış bacağı",
- " * Rname -- `dahili röle': hafızada bir bit.",
- " * Tname -- zamanlayıcı; turn-on, turn-off yada retentive ",
- " * Cname -- sayıcı, yukarı yada aşağı sayıcı",
- " * Aname -- A/D çeviriciden okunan bir tamsayı değer",
- " * name -- genel değişken (tamsayı)",
- "",
- "İstediğiniz ismi seçebilirsiniz. Seçilen bir isim nerede kullanılırsa",
- "kullanılsın aynı yere denk gelir. Örnekler; bir satırda Xasd kullandığınızda",
- "bir başka satırda Xasd kullanırsanız aynı değere sahiptirler. ",
- "Bazen bu mecburi olarak kullanılmaktadır. Ancak bazı durumlarda hatalı olabilir.",
- "Mesela bir (TON) Turn-On Gecikmeye Tgec ismini verdikten sonra bir (TOF)",
- "Turn_Off gecikme devresine de Tgec ismini verirseniz hata yapmış olursunuz.",
- "Dikkat ederseniz yaptığınız bir mantık hatasıdır. Her gecikme devresi kendi",
- "hafızasına sahip olmalıdır. Ama Tgec (TON) turn-on gecikme devresini sıfırlamak",
- "için kullanılan RES komutunda Tgec ismini kullanmak gerekmektedir.",
- "",
- "Değişken isimleri harfleri, sayıları, alt çizgileri ihtiva edebilir.",
- "(_). Değişken isimleri sayı ile başlamamalıdır. Değişken isimleri büyük-küçük harf duyarlıdır.",
- "Örneğin; TGec ve Tgec aynı zamanlayıcılar değildir.",
- "",
- "",
- "Genel değişkenlerle ilgili komutlar (MOV, ADD, EQU vs) herhangi bir",
- "isimdeki değişkenlerle çalışır. Bunun anlamı bu komutlar zamanlayıcılar",
- "ve sayıcılarla çalışır. Zaman zaman bu faydalı olabilir. Örneğin; bir ",
- "zamanlayıcının değeri ile ilgili bir karşılaştırma yapabilirsiniz.",
- "",
- "Değişkenler hr zaman için 16 bit tamsayıdır. -32768 ile 32767 arasında",
- "bir değere sahip olabilirler. Her zaman için işaretlidir. (+ ve - değere",
- "sahip olabilirler) Onluk sayı sisteminde sayı kullanabilirsiniz. Tırnak",
- "arasına koyarak ('A', 'z' gibi) ASCII karakterler kullanabilirsiniz.",
- "",
- "Ekranın alt tarafındaki kısımda kullanılan tüm elemanların bir listesi görünür.",
- "Bu liste program tarafından otomatik olarak oluşturulur ve kendiliğinden",
- "güncelleştirilir. Sadece 'Xname', 'Yname', 'Aname' elemanları için",
- "mikrokontrolörün bacak numaraları belirtilmelidir. Önce Ayarlar->İşlemci Seçimi",
- "menüsünden işlemciyi seçiniz. Daha sonra G/Ç uçlarını çift tıklatarak açılan",
- "pencereden seçiminizi yapınız.",
- "",
- "Komut ekleyerek veya çıkararak programınızı değiştirebilirsiniz. Programdaki",
- "kursör eleman eklenecek yeri veya hakkında işlem yapılacak elemanı göstermek",
- "amacıyla yanıp söner. Elemanlar arasında <Tab> tuşu ile gezinebilirsiniz. Yada",
- "elemanı fare ile tıklatarak işlem yapılacak elemanı seçebilirsiniz. Kursör elemanın",
- "solunda, sağında, altında ve üstünde olabilir. Solunda ve sağında olduğunda",
- "ekleme yaptığınızda eklenen eleman o tarafa eklenir. Üstünde ve altında iken",
- "eleman eklerseniz eklenen eleman seçili elemana paralel olarak eklenir.",
- "Bazı işlemleri yapamazsınız. Örneğin bir bobinin sağına eleman ekleyemezsiniz.",
- "LDMicro buna izin vermeyecektir.",
- "",
- "Program boş bir satırla başlar. Kendiniz alta ve üste satır ekleyerek dilediğiniz",
- "gibi diyagramınızı oluşturabilirsiniz. Yukarıda bahsedildiği gibi alt devreler",
- "oluşturabilirsiniz.",
- "",
- "Programınız yazdığınızda simülasyon yapabilir, .hex dosyasını oluşturabilirsiniz.",
- "",
- "SİMÜLASYON",
- "==========",
- "",
- "Simülasyon moduna geçmek için Simülasyon->Simülasyon modu menüsünü tıklatabilir,",
- "yada <Ctrl+M> tuş kombinasyonuna basabilirsiniz. Simülasyon modunda program",
- "farklı bir görüntü alır. Kursör görünmez olur. Enerji alan yerler ve elemanlar",
- "parlak kırmızı, enerji almayan yerler ve elemanlar gri görünür. Boşluk tuşuna",
- "basarak bir çevrim ilerleyebilir yada menüden Simülasyon->Gerçek Zamanlı Simülasyonu Başlat",
- "diyerek (veya <Ctrl+R>) devamlı bir çevrim başlatabilirsiniz. Ladder diyagramının",
- "çalışmasına göre gerçek zamanlı olarak elemanlar ve yollar program tarafından değiştirilir.",
- "",
- "Giriş elemanlarının durumunu çift tıklatarak değiştirebilirsiniz. Mesela, 'Xname'",
- "kontağını çift tıklatıranız açıktan kapalıya veya kapalıdan açığa geçiş yapar.",
- "",
- "DERLEME",
- "=======",
- "",
- "Ladder diyagramının yapılmasındaki amaç işlemciye yüklenecek .hex dosyasının",
- "oluşturulmasıdır. Buna 'derleme' denir. Derlemeden önce şu aşamalar tamamlanmalıdır:",
- " 1- İşlemci seçilmelidir. Ayarlar->İşlemci Seçimi menüsünden yapılır.",
- " 2- G/Ç uçlarının mikrokontrolördeki hangi bacaklara bağlanacağı seçilmelidir.",
- " Elemanın üzerine çift tıklanır ve çıkan listeden seçim yapılır.",
- " 3- Çevrim süresi tanımlanmalıdır. Ayarlar->İşlemci Ayarları menüsünden yapılır.",
- " Bu süre işlemcinin çalıştığı frekansa bağlıdır. Çoğu uygulamalar için 10ms",
- " uygun bir seçimdir. Aynı yerden kristal frekansını ayarlamayı unutmayınız.",
- "",
- "Artık kodu üretebilirsiniz. Derle->Derle yada Derle->Farklı Derle seçeneklerinden",
- "birini kullanacaksınız. Aradaki fark Kaydet ve Farklı Kaydet ile aynıdır. Sonuçta",
- "Intel IHEX dosyanız programınızda hata yoksa üretilecektir. Programınızda hata varsa",
- "uyarı alırsınız.",
- "",
- "Progamlayıcınız ile bu dosyayı işlemcinize yüklemelisiniz. Buradaki en önemli nokta",
- "işlemcinin konfigürasyon bitlerinin ayarlanmasıdır. PIC16 işlemciler için gerekli ",
- "ayar bilgileri hex dosyasına kaydedildiğinden programlayıcınız bu ayarları algılayacaktır.",
- "Ancak AVR işlemciler için gerekli ayarları siz yapmalısınız.",
- "",
- "KOMUTLAR ve ELEMANLAR",
- "=====================",
- "",
- "> KONTAK, NORMALDE AÇIK Xname Rname Yname",
- " ----] [---- ----] [---- ----] [----",
- "",
- " Normalde açık bir anahtar gibi davranır. Komutu kontrol eden sinyal 0 ise ",
- " çıkışındaki sinyalde 0 olur. Eğer kontrol eden sinyal 1 olursa çıkışı da 1",
- " olur ve çıkışa bağlı bobin aktif olur. Bu kontak işlemci bacağından alınan",
- " bir giriş, çıkış bacağı yada dahili bir röle olabilir.",
- "",
- "",
- "> KONTAK, NORMALDE KAPALI Xname Rname Yname",
- " ----]/[---- ----]/[---- ----]/[----",
- "",
- " Normalde kapalı bir anahtar gibi davranır. Komutun kontrol eden sinyal 0 ise",
- " çıkışı 1 olur. Eğer kontrol eden sinyal 1 olursa çıkışı 0 olur ve çıkışa",
- " bağlı elemanlar pasif olur. Normalde çıkışa gerilim verilir, ancak bu kontağı ",
- " kontrol eden sinyal 1 olursa kontağın çıkışında gerilim olmaz. Bu kontak ",
- " işlemci bacağından alınan bir giriş, çıkış bacağı yada dahili bir röle olabilir",
- "",
- "",
- "> BOBİN, NORMAL Rname Yname",
- " ----( )---- ----( )----",
- "",
- " Elemana giren sinyal 0 ise dahili röle yada çıkış bacağı 0 yapılır.",
- " Elemana giren sinyal 1 ise dahili röle yada çıkış bacağı 1 yapılır.",
- " Bobine giriş değişkeni atamak mantıksızdır. Bu eleman bir satırda",
- " sağdaki en son eleman olmalıdır.",
- "",
- "",
- "> BOBİN, TERSLENMİŞ Rname Yname",
- " ----(/)---- ----(/)----",
- "",
- " Elemana giren sinyal 0 ise dahili röle yada çıkış bacağı 1 yapılır.",
- " Elemana giren sinyal 1 ise dahili röle yada çıkış bacağı 0 yapılır.",
- " Bobine giriş değişkeni atamak mantıksızdır. Bu eleman bir satırda",
- " sağdaki en son eleman olmalıdır. Normal bobinin tersi çalışır.",
- " ",
- "",
- "> BOBİN, SET Rname Yname",
- " ----(S)---- ----(S)----",
- "",
- " Elemana giren sinyal 1 ise dahili röle yada çıkış bacağı 1 yapılır.",
- " Diğer durumlarda bu bobinin durumunda bir değişiklik olmaz. Bu komut",
- " bobinin durumunu sadece 0'dan 1'e çevirir. Bu nedenle çoğunlukla",
- " BOBİN-RESET ile beraber çalışır. Bu eleman bir satırda sağdaki en",
- " son eleman olmalıdır.",
- "",
- "",
- "> BOBİN, RESET Rname Yname",
- " ----(R)---- ----(R)----",
- "",
- " Elemana giren sinyal 1 ise dahili röle yada çıkış bacağı 0 yapılır.",
- " Diğer durumlarda bu bobinin durumunda bir değişiklik olmaz. Bu komut",
- " bobinin durumunu sadece 1'dEn 0'a çevirir. Bu nedenle çoğunlukla",
- " BOBİN-SET ile beraber çalışır. Bu eleman bir satırda sağdaki en",
- " son eleman olmalıdır.",
- "",
- "",
- "> TURN-ON GECİKME Tdon ",
- " -[TON 1.000 s]-",
- "",
- " Bir zamanlayıcıdır. Girişindeki sinyal 0'dan 1'e geçerse ayarlanan",
- " süre kadar sürede çıkış 0 olarak kalır, süre bitince çıkışı 1 olur. ",
- " Girişindeki sinyal 1'den 0'a geçerse çıkış hemen 0 olur.",
- " Girişi 0 olduğu zaman zamanlayıcı sıfırlanır. Ayrıca; ayarlanan süre",
- " boyunca giriş 1 olarak kalmalıdır.",
- "",
- " Zamanlayıcı 0'dan başlayarak her çevrim süresinde 1 artarak sayar.",
- " Sayı ayarlanan süreye eşit yada büyükse çıkış 1 olur. Zamanlayıcı",
- " değişkeni üzerinde işlem yapmak mümkündür. (Örneğin MOV komutu ile)",
- "",
- "",
- "> TURN-OFF GECİKME Tdoff ",
- " -[TOF 1.000 s]-",
- "",
- " Bir zamanlayıcıdır. Girişindeki sinyal 1'den 0'a geçerse ayarlanan",
- " süre kadar sürede çıkış 1 olarak kalır, süre bitince çıkışı 0 olur. ",
- " Girişindeki sinyal 0'dan 1'e geçerse çıkış hemen 1 olur.",
- " Girişi 0'dan 1'e geçtiğinde zamanlayıcı sıfırlanır. Ayrıca; ayarlanan",
- " süre boyunca giriş 0 olarak kalmalıdır.",
- "",
- " Zamanlayıcı 0'dan başlayarak her çevrim süresinde 1 artarak sayar.",
- " Sayı ayarlanan süreye eşit yada büyükse çıkış 1 olur. Zamanlayıcı",
- " değişkeni üzerinde işlem yapmak mümkündür. (Örneğin MOV komutu ile)",
- "",
- "",
- "> SÜRE SAYAN TURN-ON GECİKME Trto ",
- " -[RTO 1.000 s]-",
- "",
- " Bu zamanlayıcı girişindeki sinyalin ne kadar süre ile 1 olduğunu",
- " ölçer. Ayaralanan süre boyunca giriş 1 ise çıkışı 1 olur. Aksi halde",
- " çıkışı 0 olur. Ayarlanan süre devamlı olması gerekmez. Örneğin; süre ",
- " 1 saniyeye ayarlanmışsa ve giriş önce 0.6 sn 1 olmuşsa, sonra 2.0 sn",
- " boyunca 0 olmuşsa daha sonra 0.4 sn boyunca giriş tekrar 1 olursa",
- " 0.6 + 0.4 = 1sn olduğundan çıkış 1 olur. Çıkış 1 olduktan sonra",
- " giriş 0 olsa dahi çıkış 0'a dönmez. Bu nedenle zamanlayıcı RES reset",
- " komutu ile resetlenmelidir.",
- "",
- " Zamanlayıcı 0'dan başlayarak her çevrim süresinde 1 artarak sayar.",
- " Sayı ayarlanan süreye eşit yada büyükse çıkış 1 olur. Zamanlayıcı",
- " değişkeni üzerinde işlem yapmak mümkündür. (Örneğin MOV komutu ile)",
- "",
- "",
- "> RESET (SAYICI SIFIRLAMASI) Trto Citems",
- " ----{RES}---- ----{RES}----",
- "",
- " Bu komut bir zamanlayıcı veya sayıcıyı sıfırlar. TON ve TOF zamanlayıcı",
- " komutları kendiliğinden sıfırlandığından bu komuta ihtiyaç duymazlar.",
- " RTO zamanlayıcısı ve CTU/CTD sayıcıları kendiliğinden sıfırlanmadığından",
- " sıfırlanmaları için kullanıcı tarafından bu komutile sıfırlanması",
- " gerekir. Bu komutun girişi 1 olduğunda sayıcı/zamanlayıcı sıfırlanır.",
- " Bu komut bir satırın sağındaki son komut olmalıdır.",
- "",
- "",
- "> YÜKSELEN KENAR _",
- " --[OSR_/ ]--",
- "",
- " Bu komutun çıkışı normalde 0'dır. Bu komutun çıkışının 1 olabilmesi",
- " için bir önceki çevrimde girişinin 0 şimdiki çevrimde girişinin 1 ",
- " olması gerekir. Komutun çıkışı bir çevrimlik bir pals üretir.",
- " Bu komut bir sinyalin yükselen kenarında bir tetikleme gereken",
- " uygulamalarda faydalıdır.",
- " ",
- "",
- "> DÜŞEN KENAR _",
- " --[OSF \\_]--",
- "",
- " Bu komutun çıkışı normalde 0'dır. Bu komutun çıkışının 1 olabilmesi",
- " için bir önceki çevrimde girişinin 1 şimdiki çevrimde girişinin 0 ",
- " olması gerekir. Komutun çıkışı bir çevrimlik bir pals üretir.",
- " Bu komut bir sinyalin düşen kenarında bir tetikleme gereken",
- " uygulamalarda faydalıdır.",
- "",
- "",
- "> KISA DEVRE, AÇIK DEVRE",
- " ----+----+---- ----+ +----",
- "",
- " Kısa devrenin çıkışı her zaman girişinin aynısıdır.",
- " Açık devrenin çıkışı her zaman 0'dır. Bildiğimiz açık/kısa devrenin",
- " aynısıdır. Genellikle hata aramada kullanılırlar.",
- "",
- "> ANA KONTROL RÖLESİ",
- " -{MASTER RLY}-",
- "",
- " Normalde her satırın ilk girişi 1'dir. Birden fazla satırın tek bir şart ile ",
- " kontrol edilmesi gerektiğinde paralel bağlantı yapmak gerekir. Bu ise zordur.",
- " Bu işlemi kolayca yapabilmek için ana kontrol rölesini kullanabiliriz.",
- " Ana kontrol rölesi eklendiğinde kendisinden sonraki satırlar bu röleye bağlı",
- " hale gelir. Böylece; birden fazla satır tek bir şart ile kontrolü sağlanır.",
- " Bir ana kontrol rölesi kendisinden sonra gelen ikinci bir ana kontrol",
- " rölesine kadar devam eder. Diğer bir deyişle birinci ana kontrol rölesi",
- " başlangıcı ikincisi ise bitişi temsil eder. Ana kontrol rölesi kullandıktan",
- " sonra işlevini bitirmek için ikinci bir ana kontrol rölesi eklemelisiniz.",
- "",
- "> MOVE {destvar := } {Tret := }",
- " -{ 123 MOV}- -{ srcvar MOV}-",
- "",
- " Girişi 1 olduğunda verilen sabit sayıyı (123 gibi) yada verilen değişkenin",
- " içeriğini (srcvar) belirtilen değişkene (destvar) atar. Giriş 0 ise herhangi",
- " bir işlem olmaz. Bu komut ile zamanlayıcı ve sayıcılar da dahil olmak üzere",
- " tüm değişkenlere değer atayabilirsiniz. Örneğin Tsay zamanlayıcısına MOVE ile",
- " 0 atamak ile RES ile sıfırlamak aynı sonucu doğurur. Bu komut bir satırın",
- " sağındaki en son komut olmalıdır.",
- "",
- "> MATEMATİK İŞLEMLER {ADD kay :=} {SUB Ccnt :=}",
- " -{ 'a' + 10 }- -{ Ccnt - 10 }-",
- "",
- "> {MUL dest :=} {DIV dv := }",
- " -{ var * -990 }- -{ dv / -10000}-",
- "",
- " Bu komutun girişi doğru ise belirtilen hedef değişkenine verilen matematik",
- " işlemin sonucunu kaydeder. İşlenen bilgi zamanlayıcı ve sayıcılar dahil",
- " olmak üzere değişkenler yada sabit sayılar olabilir. İşlenen bilgi 16 bit",
- " işaretli sayıdır. Her çevrimde işlemin yeniden yapıldığı unutulmamalıdır.",
- " Örneğin artırma yada eksiltme yapıyorsanız yükselen yada düşen kenar",
- " kullanmanız gerekebilir. Bölme (DIV) virgülden sonrasını keser. Örneğin;",
- " 8 / 3 = 2 olur. Bu komut bir satırın sağındaki en son komut olmalıdır.",
- "",
- "",
- "> KARŞILAŞTIRMA [var ==] [var >] [1 >=]",
- " -[ var2 ]- -[ 1 ]- -[ Ton]-",
- "",
- "> [var /=] [-4 < ] [1 <=]",
- " -[ var2 ]- -[ vartwo]- -[ Cup]-",
- "",
- " Değişik karşılaştırma komutları vardır. Bu komutların girişi doğru (1)",
- " ve verilen şart da doğru ise çıkışları 1 olur.",
- "",
- "",
- "> SAYICI Cname Cname",
- " --[CTU >=5]-- --[CTD >=5]--",
- "",
- " Sayıcılar girişlerinin 0'dan 1'e her geçişinde yani yükselen kenarında",
- " değerlerini 1 artırır (CTU) yada eksiltirler (CTD). Verilen şart doğru ise",
- " çıkışları aktif (1) olur. CTU ve CTD sayıcılarına aynı ismi erebilirsiniz.",
- " Böylece aynı sayıcıyı artırmış yada eksiltmiş olursunuz. RES komutu sayıcıları",
- " sıfırlar. Sayıcılar ile genel değişkenlerle kullandığınız komutları kullanabilirsiniz.",
- "",
- "",
- "> DAİRESEL SAYICI Cname",
- " --{CTC 0:7}--",
- "",
- " Normal yukarı sayıcıdan farkı belirtilen limite ulaşınca sayıcı tekrar 0'dan başlar",
- " Örneğin sayıcı 0, 1, 2, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 2,.... şeklinde",
- " sayabilir. Yani bir dizi sayıcı olarak düşünülebilir. CTC sayıcılar girişlerinin",
- " yükselen kenarında değer değiştirirler. Bu komut bir satırın sağındaki",
- " en son komut olmalıdır.",
- " ",
- "",
- "> SHIFT REGISTER {SHIFT REG }",
- " -{ reg0..3 }-",
- "",
- " Bir dizi değişken ile beraber çalışır. İsim olarak reg verdiğinizi ve aşama ",
- " sayısını 3 olarak tanımladıysanız reg0, reg1, reg2 değikenleri ile çalışırsınız.",
- " Kaydedicinin girişi reg0 olur. Girişin her yükselen kenarında değerler kaydedicide",
- " bir sağa kayar. Mesela; `reg2 := reg1'. and `reg1 := reg0'. `reg0' değişmez.",
- " Geniş bir kaydedici hafızada çok yer kaplar.",
- " Bu komut bir satırın sağındaki en son komut olmalıdır.",
- "",
- "",
- "> DEĞER TABLOSU {dest := }",
- " -{ LUT[i] }-",
- "",
- " Değer tablosu sıralanmış n adet değer içeren bir tablodur. Girişi doğru olduğunda",
- " `dest' tamsayı değişkeni `i' tamsayı değişkenine karşılık gelen değeri alır. Sıra",
- " 0'dan başlar. bu nedenle `i' 0 ile (n-1) arasında olabilir. `i' bu değerler ",
- " arasında değilse komutun ne yapacağı tanımlı değildir.",
- " Bu komut bir satırın sağındaki en son komut olmalıdır.",
- "",
- "",
- "> PIECEWISE LINEAR TABLE {yvar := }",
- " -{ PWL[xvar] }-",
- "",
- " Bir matris tablo olarak düşünülebilir. Bir değere bağlı olarak değerin önceden",
- " belirlenen bir başka değer ile değiştirilmesi içi oluşturulan bir tablodur.",
- " Bu bir eğri oluşturmak, sensörden alınan değere göre çıkışta başka bir eğri",
- " oluşturmak gibi amaçlar için kullanılabilir.",
- "",
- " Farzedelimki x tamsayı giriş değerini y tamsayı çıkış değerine yaklaştırmak ",
- " istiyoruz. Değerlerin belirli noktalarda olduğunu biliyoruz. Örneğin;",
- "",
- " f(0) = 2",
- " f(5) = 10",
- " f(10) = 50",
- " f(100) = 100",
- "",
- " Bu şu noktaların eğride olduğunu gösterir:",
- "",
- " (x0, y0) = ( 0, 2)",
- " (x1, y1) = ( 5, 10)",
- " (x2, y2) = ( 10, 50)",
- " (x3, y3) = (100, 100)",
- "",
- " Dört değeri parçalı lineer tabloya gireriz. Komut, xvar'ın değerine bakarak",
- " yvar'a değer verir. Örneğin, yukarıdaki örneğe bakarak, xvar = 10 ise",
- " yvar = 50 olur.",
- " ",
- " Tabloya kayıtlı iki değerin arasında bir değer verirseniz verilen değer de",
- " alınması gereken iki değerin arasında uygun gelen yerde bir değer olur.",
- " Mesela; xvar=55 yazarsanız yvar=75 olur. (Tablodaki değerler (10,50) ve",
- " (100,100) olduğuna göre). 55, 10 ve 100 değerlerinin ortasındadır. Bu",
- " nedenle 55 ve 75 değerlerinin ortası olan 75 değeri alınır.",
- " ",
- " Değerler x koordinatında artan değerler olarak yazılmalıdır. 16 bit tamsayı",
- " kullanan bazı değerler için arama tablosu üzerinde matematik işlemler",
- " gerçekleşmeyebilir. Bu durumda LDMicro sizi uyaracaktır. Örneğin aşağıdaki",
- " tablo bir hata oluşturacaktır:",
- "",
- " (x0, y0) = ( 0, 0)",
- " (x1, y1) = (300, 300)",
- "",
- " Bu tip hataları noktalar arsında ara değerler oluşturarak giderebilirsiniz.",
- " Örneğin aşağıdaki tablo yukarıdakinin aynısı olmasına rağmen hata ",
- " oluşturmayacaktır.",
- " ",
- " (x0, y0) = ( 0, 0)",
- " (x1, y1) = (150, 150)",
- " (x2, y2) = (300, 300)",
- "",
- " Genelde 5 yada 6 noktadan daha fazla değer kullanmak gerekmeyecektir.",
- " Daha fazla nokta demek daha fazla kod ve daha yavaş çalışma demektir.",
- " En fazla 10 nokta oluşturabilirsiniz. xvar değişkenine x koordinatında",
- " tablonun en yüksek değerinden daha büyük bir değer girmenin ve en düşük",
- " değerinden daha küçük bir değer girmenin sonucu tanımlı değildir.",
- " Bu komut bir satırın sağındaki en son komut olmalıdır.",
- "",
- "> A/D ÇEVİRİCİDEN OKUMA Aname",
- " --{READ ADC}--",
- "",
- " LDmicro A/D çeviriciden değer okumak için gerekli kodları desteklediği",
- " işlemciler için oluşturabilir. Komutun girişi 1 olduğunda A/D çeviriciden ",
- " değer okunur ve okunan değer `Aname' değişkenine aktarılır. Bu değişken",
- " üzerinde genel değişkenlerle kullanılabilen işlemler kullanılabilir.",
- " (büyük, küçük, büyük yada eşit gibi). Bu değişkene işlemcinin bacaklarından",
- " uygun biri tanımlanmalıdır. Komutun girişi 0 ise `Aname'değişkeninde bir",
- " değişiklik olmaz.",
- " ",
- " Şu an desteklenen işlemciler için; 0 Volt için ADC'den okunan değer 0, ",
- " Vdd (besleme gerilimi) değerine eşit gerilim değeri için ADC'den okunan değer",
- " 1023 olmaktadır. AVR kullanıyorsanız AREF ucunu Vdd besleme gerilimine ",
- " bağlayınız.",
- " ",
- " Aritmetik işlemler ADC değişkeni için kullanılabilir. Ayrıca bacak tanımlarken",
- " ADC olmayan bacakların tanımlanmasını LDMicro engelleyecektir.",
- " Bu komut bir satırın sağındaki en son komut olmalıdır.",
- "",
- " > PWM PALS GENİŞLİĞİ AYARI duty_cycle",
- " -{PWM 32.8 kHz}-",
- "",
- " LDmicro desteklediği mikrokontrolörler için gerekli PWM kodlarını üretebilir.",
- " Bu komutun girişi doğru (1) olduğunda PWM sinyalinin pals genişliği duty_cycle",
- " değişkeninin değerine ayarlanır. Bu değer 0 ile 100 arasında değişir. Pals",
- " genişliği yüzde olarak ayarlanır. Bir periyot 100 birim kabul edilirse bu",
- " genişliğin yüzde kaçının palsi oluşturacağı ayarlanır. 0 periyodun tümü sıfır",
- " 100 ise periyodun tamamı 1 olsun anlamına gelir. 10 değeri palsin %10'u 1 geri",
- " kalan %90'ı sıfır olsun anlamına gelir.",
- "",
- " PWM frekansını ayarlayabilirsiniz. Verilen değer Hz olarak verilir.",
- " Verdiğiniz frekans kesinlikle ayarlanabilir olmalıdır. LDMicro verdiğiniz değeri",
- " olabilecek en yakın değerle değiştirir. Yüksek hızlarda doğruluk azalır.",
- " ",
- " Bu komut bir satırın sağındaki en son komut olmalıdır.",
- " Periyodun süresinin ölçülebilmesi için işlemcinin zamanlayıcılarının bir tanesi",
- " kullanılır. Bu nedenle PWM en az iki tane zamanlayıcısı olan işlemcilerde kullanılır.",
- " PWM PIC16 işlemcilerde CCP2'yi, AVR'lerde ise OC2'yi kullanır.",
- "",
- "",
- "> EEPROMDA SAKLA saved_var",
- " --{PERSIST}--",
- "",
- " Bu komut ile belirtilen değişkenin EEPROM'da saklanması gereken bir değişken olduğunu",
- " belirmiş olursunuz. Komutun girişi doğru ise belirtilen değişkenin içeriği EEPROM'a",
- " kaydedilir. Enerji kesildiğinde kaybolmaması istenen değerler için bu komut kullanılır.",
- " Değişkenin içeriği gerilim geldiğinde tekrar EEPROM'dan yüklenir. Ayrıca;",
- " değişkenin içeriği her değiştiğinde yeni değer tekrar EEPROM'a kaydedilir.",
- " Ayrıca bir işlem yapılması gerekmez.",
- " Bu komut bir satırın sağındaki en son komut olmalıdır.",
- "",
- "************************",
- "> UART (SERİ BİLGİ) AL var",
- " --{UART RECV}--",
- "",
- " LDmicro belirli işlemciler için gerekli UART kodlarını üretebilir. AVR işlemcilerde",
- " sadece UART1 (UART0) değil) desteklenmektedir. İletişim hızı (baudrate) ayarlarını ",
- " Ayarlar->İşlemci Ayarları menüsünden yapmalısınız. Hız kristal frekansına bağlı olup,",
- " bazı hızlar desteklenmeyebilir. Bu durumda LDMicro sizi uyaracaktır. ",
- " ",
- " Bu komutun girişi yanlışsa herhangi bir işlem yapılmaz. Doğru ise UART'dan 1 karakter",
- " alınmaya çalışılır. Okuma yapılamaz ise komutun çıkışı yanlış (0) olur. Karakter",
- " okunursa okunan karakter `var' değişkeninde saklanır ve komutun çıkışı doğru (1) olur.",
- " Çıkışın doğru olması sadece bir PLC çevrimi sürer.",
- "",
- "",
- "> UART (SERİ BİLGİ) GÖNDER var",
- " --{UART SEND}--",
- "",
- " LDmicro belirli işlemciler için gerekli UART kodlarını üretebilir. AVR işlemcilerde",
- " sadece UART1 (UART0) değil) desteklenmektedir. İletişim hızı (baudrate) ayarlarını ",
- " Ayarlar->İşlemci Ayarları menüsünden yapmalısınız. Hız kristal frekansına bağlı olup,",
- " bazı hızlar desteklenmeyebilir. Bu durumda LDMicro sizi uyaracaktır.",
- " ",
- " Bu komutun girişi yanlışsa herhangi bir işlem yapılmaz. Doğru ise UART'dan 1 karakter",
- " gönderilir. Gönderilecek karakter gönderme işleminden önce `var' değişkeninde saklı",
- " olmalıdır. Komutun çıkışı UART meşgulse (bir karakterin gönderildiği sürece)",
- " doğru (1) olur. Aksi halde yanlış olur.",
- " Çıkışın doğru olması sadece bir PLC çevrimi sürer.",
- " ",
- " Karakterin gönderilmesi belirli bir zaman alır. Bu nedenle başka bir karakter",
- " göndermeden önce önceki karakterin gönderildiğini kontrol ediniz veya gönderme",
- " işlemlerinin arasına geikme ekleyiniz. Komutun girişini sadece çıkış yanlış",
- " (UART meşgul değilse)ise doğru yapınız.",
- "",
- " Bu komut yerine biçimlendirilmiş kelime komutunu (bir sonraki komut) inceleyiniz.",
- " Biçimlendirilmiş kelime komutunun kullanımı daha kolaydır. İstediğiniz işlemleri",
- " daha rahat gerçekleştirebilirsiniz.",
- "",
- "",
- "> UART ÜZERİNDEN BİÇİMLENDİRİLMİŞ KELİME var",
- " -{\"Pressure: \\3\\r\\n\"}-",
- "",
- " LDmicro belirli işlemciler için gerekli UART kodlarını üretebilir. AVR işlemcilerde",
- " sadece UART1 (UART0) değil) desteklenmektedir. İletişim hızı (baudrate) ayarlarını ",
- " Ayarlar->İşlemci Ayarları menüsünden yapmalısınız. Hız kristal frekansına bağlı olup,",
- " bazı hızlar desteklenmeyebilir. Bu durumda LDMicro sizi uyaracaktır.",
- "",
- " Bu komutun girişi yanlıştan doğruya geçerse (yükselen kenar) ise seri port üzerinden",
- " tüm kelimeyi gönderir. Eğer kelime `\\3' özel kodunu içeriyorsa dizi içeriği ",
- " `var' değişkenin içeriği otomatik olarak kelimeye (string) çevrilerek`var'",
- " değişkeninin içeriği ile değiştirilir. Değişkenin uzunluğu 3 karakter olacak şekilde",
- " değiştirilir. Mesela; `var' değişkeninin içeriği 35 ise kelime 35 rakamının başına bir",
- " adet boşul eklenerek `Pressure: 35\\r\\n' haline getirilir. Veya `var'değişkeninin",
- " içeriği 1453 ise yapılacak işlem belli olmaz. Bu durumda `\\4' kullanmak gerekebilir.",
- "",
- " Değişken negatif bir sayı olabilecekse `\\-3d' (veya `\\-4d') gibi uygun bir değer",
- " kullanmalısınız. Bu durumda LDMicro negatif sayıların önüne eksi işareti, pozitif sayıların",
- " önüne ise bir boşluk karakteri yerleştirecektir.",
- "",
- " Aynı anda birkaç işlem tanımlanırsa, yada UART ile ilgili işlemler birbirine",
- " karışık hale getirilirse programın davranışı belirli olmayacaktır. Bu nedenle",
- " dikkatli olmalısınız.",
- "",
- " Kullanılabilecek özel karakterler (escape kodları) şunlardır:",
- " * \\r -- satır başına geç",
- " * \\n -- yeni satır",
- " * \\f -- kağıdı ilerlet (formfeed)",
- " * \\b -- bir karakter geri gel (backspace)",
- " * \\xAB -- ASCII karakter kodu 0xAB (hex)",
- "",
- " Bu komutun çıkışı bilgi gönderiyorken doğru diğer durumlarda yanlış olur.",
- " Bu komut program hafızasında çok yer kaplar.",
- "",
- "",
- "MATEMATİKSEL İŞLEMLER İLE İLGİLİ BİLGİ",
- "======================================",
- "",
- "Unutmayın ki, LDMicro 16-bit tamsayı matematik komutlarına sahiptir.",
- "Bu işlemlerde kullanılan değerler ve hesaplamanın sonucu -32768 ile",
- "32767 arasında bir tamsayı olabilir.",
- "",
- "Mesela y = (1/x)*1200 formülünü hesaplamaya çalışalım. x 1 ile 20",
- "arasında bir sayıdır. Bu durumda y 1200 ile 60 arasında olur. Bu sayı",
- "16-bit bir tamsayı sınırları içindedir. Ladder diyagramımızı yazalım.",
- "Önce bölelim, sonra çarpma işlemini yapalım:",
- "",
- " || {DIV temp :=} ||",
- " ||---------{ 1 / x }----------||",
- " || ||",
- " || {MUL y := } ||",
- " ||----------{ temp * 1200}----------||",
- " || ||",
- "",
- "Yada bölmeyi doğrudan yapalım:",
- "",
- " || {DIV y :=} ||",
- " ||-----------{ 1200 / x }-----------||",
- "",
- "Matematiksel olarak iki işlem aynıd sonucu vermelidir. Ama birinci işlem",
- "yanlış sonuç verecektir. (y=0 olur). Bu hata `temp' değişkeninin 1'den",
- "küçük sonuç vermesindendir.Mesela x = 3 iken (1 / x) = 0.333 olur. Ama",
- "0.333 bir tamsayı değildir. Bu nedenle sonuç 0 olur. İkinci adımda ise",
- "y = temp * 1200 = 0 olur. İkinci şekilde ise bölen bir tamsayı olduğundan",
- "sonuç doğru çıkacaktır.",
- "",
- "İşlemlerinizde bir sorun varsa dikkatle kontrol ediniz. Ayrıca sonucun",
- "başa dönmemesine de dikkat ediniz. Mesela 32767 + 1 = -32768 olur.",
- "32767 sınırı aşılmış olacaktır. ",
- "",
- "Hesaplamalarınızda mantıksal değişimler yaparak doğru sonuçlar elde edebilirsiniz.",
- "Örneğin; y = 1.8*x ise formülünüzü y = (9/5)*x şeklinde yazınız.(1.8 = 9/5)",
- "y = (9*x)/5 şeklindeki bir kod sonucu daha tutarlı hale getirecektir.",
- "performing the multiplication first:",
- "",
- " || {MUL temp :=} ||",
- " ||---------{ x * 9 }----------||",
- " || ||",
- " || {DIV y :=} ||",
- " ||-----------{ temp / 5 }-----------||",
- "",
- "",
- "KODALAMA ŞEKLİ",
- "==============",
- "",
- "Programın sağladığı kolaylıklardan faydalanın. Mesela:",
- "",
- " || Xa Ya ||",
- " 1 ||-------] [--------------( )-------||",
- " || ||",
- " || Xb Yb ||",
- " ||-------] [------+-------( )-------||",
- " || | ||",
- " || | Yc ||",
- " || +-------( )-------||",
- " || ||",
- "",
- "yazmak aşağıdakinden daha kolay olacaktır.",
- "",
- " || Xa Ya ||",
- " 1 ||-------] [--------------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || Xb Yb ||",
- " 2 ||-------] [--------------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || Xb Yc ||",
- " 3 ||-------] [--------------( )-------||",
- " || ||",
- "",
- " * * *",
- "",
- "Yazdığınız kodların sonuçlarına dikkat ediniz. Aşağıdaki satırlarda",
- "mantıksız bir programlama yapılmıştır. Çünkü hem Xa hemde Xb aynı",
- "anda doğru olabilir.",
- "",
- " || Xa {v := } ||",
- " 1 ||-------] [--------{ 12 MOV}--||",
- " || ||",
- " || Xb {v := } ||",
- " ||-------] [--------{ 23 MOV}--||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || [v >] Yc ||",
- " 2 ||------[ 15]-------------( )-------||",
- " || ||",
- "",
- "Aşağıdaki satırlar yukarda bahsi geçen tarzdadır. Ancak yapılan",
- "işlem 4-bit binary sayı tamsayıya çevrilmektedir.",
- "",
- " || {v := } ||",
- " 3 ||-----------------------------------{ 0 MOV}--||",
- " || ||",
- " || Xb0 {ADD v :=} ||",
- " ||-------] [------------------{ v + 1 }-----------||",
- " || ||",
- " || Xb1 {ADD v :=} ||",
- " ||-------] [------------------{ v + 2 }-----------||",
- " || ||",
- " || Xb2 {ADD v :=} ||",
- " ||-------] [------------------{ v + 4 }-----------||",
- " || ||",
- " || Xb3 {ADD v :=} ||",
- " ||-------] [------------------{ v + 8 }-----------||",
- " || ||",
- "",
- "",
- "HATALAR (BUG)",
- "=============",
- "",
- "LDmicro tarafından üretilen kodlar çok verimli kodlar değildir. Yavaş çalışan",
- "ve hafızada fazla yer kaplayan kodlar olabilirler. Buna rağmen orta büyüklükte",
- "bir PIC veya AVR küçük bir PLC'nin yaptığı işi yapar. Bu nedenle diğer sorunlar",
- "yer yer gözardı edlebilir.",
- "",
- "Değişken isimleri çok uzun olmamalıdır. ",
- "",
- "Programınız yada kullandığınız hafıza seçtiğiniz işlemcinin sahip olduğundan",
- "büyükse LDMicro hata vermeyebilir. Dikkat etmezseniz programınız hatalı çalışacaktır.",
- "",
- "Bulduğunuz hataları yazara bildiriniz.",
- "",
- "Teşekkürler:",
- " * Marcelo Solano, Windows 98'deki UI problemini bildirdiği için,",
- " * Serge V. Polubarjev, PIC16F628 işlemcisi seçildiğinde RA3:0'ın çalışmadığı",
- " ve nasıl düzelteceğimi bildirdiği için,",
- " * Maxim Ibragimov, ATmega16 ve ATmega162 işlemcileri test ettikleri, problemleri",
- " buldukları ve bildirdikleri için,",
- " * Bill Kishonti, sıfıra bölüm hatası olduğunda simülasyonun çöktüğünü bildirdikleri",
- " için,",
- " * Mohamed Tayae, PIC16F628 işlemcisinde EEPROM'da saklanması gereken değişkenlerin",
- " aslında saklanmadığını bildirdiği için,",
- " * David Rothwell, kullanıcı arayüzündeki birkaç problemi ve \"Metin Dosyası Olarak Kaydet\"",
- " fonksiyonundaki problemi bildirdiği için.",
- "",
- "",
- "KOPYALAMA VE KULLANIM ŞARTLARI",
- "==============================",
- "",
- "LDMICRO TARAFINDAN ÜRETİLEN KODU İNSAN HAYATI VE İNSAN HAYATINI ETKİLEYEBİLECEK",
- "PROJELERDE KULLANMAYINIZ. LDMICRO PROGRAMCISI LDMICRO'NUN KENDİNDEN VE LDMICRO",
- "İLE ÜRETİLEN KODDAN KAYNAKLANAN HİÇBİR PROBLEM İÇİN SORUMLULUK KABUL ETMEMEKTEDİR.",
- "",
- "Bu program ücretsiz bir program olup, dilediğiniz gibi dağıtabilirsiniz,",
- "kaynak kodda değişiklik yapabilirsiniz. Programın kullanımı Free Software Foundation",
- "tarafından yazılan GNU General Public License (version 3 ve sonrası)şartlarına bağlıdır.",
- "",
- "Program faydalı olması ümidiyle dağıtılmıştır. Ancak hiçbir garanti verilmemektedir.",
- "Detaylar için GNU General Public License içeriğine bakınız.",
- "",
- "Söz konusu sözleşmenin bir kopyası bu programla beraber gelmiş olması gerekmektedir.",
- "Gelmediyse <http://www.gnu.org/licenses/> adresinde bulabilirsiniz.",
- "",
- "",
- "Jonathan Westhues",
- "",
- "Rijswijk -- Dec 2004",
- "Waterloo ON -- Jun, Jul 2005",
- "Cambridge MA -- Sep, Dec 2005",
- " Feb, Mar 2006",
- " Feb 2007",
- "",
- "Email: user jwesthues, at host cq.cx",
- "",
- "Türkçe Versiyon : <http://tekelektirik.com/public/ldmicro.rar>",
- NULL
-};
-#endif
-
-#if defined(LDLANG_EN) || defined(LDLANG_ES) || defined(LDLANG_IT) || defined(LDLANG_PT)
-char *HelpText[] = {
- "",
- "INTRODUCTION",
- "============",
- "",
- "LDmicro generates native code for certain Microchip PIC16 and Atmel AVR",
- "microcontrollers. Usually software for these microcontrollers is written",
- "in a programming language like assembler, C, or BASIC. A program in one",
- "of these languages comprises a list of statements. These languages are",
- "powerful and well-suited to the architecture of the processor, which",
- "internally executes a list of instructions.",
- "",
- "PLCs, on the other hand, are often programmed in `ladder logic.' A simple",
- "program might look like this:",
- "",
- " || ||",
- " || Xbutton1 Tdon Rchatter Yred ||",
- " 1 ||-------]/[---------[TON 1.000 s]-+-------]/[--------------( )-------||",
- " || | ||",
- " || Xbutton2 Tdof | ||",
- " ||-------]/[---------[TOF 2.000 s]-+ ||",
- " || ||",
- " || ||",
- " || ||",
- " || Rchatter Ton Tnew Rchatter ||",
- " 2 ||-------]/[---------[TON 1.000 s]----[TOF 1.000 s]---------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " ||------[END]---------------------------------------------------------||",
- " || ||",
- " || ||",
- "",
- "(TON is a turn-on delay; TOF is a turn-off delay. The --] [-- statements",
- "are inputs, which behave sort of like the contacts on a relay. The",
- "--( )-- statements are outputs, which behave sort of like the coil of a",
- "relay. Many good references for ladder logic are available on the Internet",
- "and elsewhere; details specific to this implementation are given below.)",
- "",
- "A number of differences are apparent:",
- "",
- " * The program is presented in graphical format, not as a textual list",
- " of statements. Many people will initially find this easier to",
- " understand.",
- "",
- " * At the most basic level, programs look like circuit diagrams, with",
- " relay contacts (inputs) and coils (outputs). This is intuitive to",
- " programmers with knowledge of electric circuit theory.",
- "",
- " * The ladder logic compiler takes care of what gets calculated",
- " where. You do not have to write code to determine when the outputs",
- " have to get recalculated based on a change in the inputs or a",
- " timer event, and you do not have to specify the order in which",
- " these calculations must take place; the PLC tools do that for you.",
- "",
- "LDmicro compiles ladder logic to PIC16 or AVR code. The following",
- "processors are supported:",
- " * PIC16F877",
- " * PIC16F628",
- " * PIC16F876 (untested)",
- " * PIC16F88 (untested)",
- " * PIC16F819 (untested)",
- " * PIC16F887 (untested)",
- " * PIC16F886 (untested)",
- " * ATmega128",
- " * ATmega64",
- " * ATmega162 (untested)",
- " * ATmega32 (untested)",
- " * ATmega16 (untested)",
- " * ATmega8 (untested)",
- "",
- "It would be easy to support more AVR or PIC16 chips, but I do not have",
- "any way to test them. If you need one in particular then contact me and",
- "I will see what I can do.",
- "",
- "Using LDmicro, you can draw a ladder diagram for your program. You can",
- "simulate the logic in real time on your PC. Then when you are convinced",
- "that it is correct you can assign pins on the microcontroller to the",
- "program inputs and outputs. Once you have assigned the pins, you can",
- "compile PIC or AVR code for your program. The compiler output is a .hex",
- "file that you can program into your microcontroller using any PIC/AVR",
- "programmer.",
- "",
- "LDmicro is designed to be somewhat similar to most commercial PLC",
- "programming systems. There are some exceptions, and a lot of things",
- "aren't standard in industry anyways. Carefully read the description",
- "of each instruction, even if it looks familiar. This document assumes",
- "basic knowledge of ladder logic and of the structure of PLC software",
- "(the execution cycle: read inputs, compute, write outputs).",
- "",
- "",
- "ADDITIONAL TARGETS",
- "==================",
- "",
- "It is also possible to generate ANSI C code. You could use this with any",
- "processor for which you have a C compiler, but you are responsible for",
- "supplying the runtime. That means that LDmicro just generates source",
- "for a function PlcCycle(). You are responsible for calling PlcCycle",
- "every cycle time, and you are responsible for implementing all the I/O",
- "(read/write digital input, etc.) functions that the PlcCycle() calls. See",
- "the comments in the generated source for more details.",
- "",
- "Finally, LDmicro can generate processor-independent bytecode for a",
- "virtual machine designed to run ladder logic code. I have provided a",
- "sample implementation of the interpreter/VM, written in fairly portable",
- "C. This target will work for just about any platform, as long as you",
- "can supply your own VM. This might be useful for applications where you",
- "wish to use ladder logic as a `scripting language' to customize a larger",
- "program. See the comments in the sample interpreter for details.",
- "",
- "",
- "COMMAND LINE OPTIONS",
- "====================",
- "",
- "ldmicro.exe is typically run with no command line options. That means",
- "that you can just make a shortcut to the program, or save it to your",
- "desktop and double-click the icon when you want to run it, and then you",
- "can do everything from within the GUI.",
- "",
- "If LDmicro is passed a single filename on the command line",
- "(e.g. `ldmicro.exe asd.ld'), then LDmicro will try to open `asd.ld',",
- "if it exists. An error is produced if `asd.ld' does not exist. This",
- "means that you can associate ldmicro.exe with .ld files, so that it runs",
- "automatically when you double-click a .ld file.",
- "",
- "If LDmicro is passed command line arguments in the form",
- "`ldmicro.exe /c src.ld dest.hex', then it tries to compile `src.ld',",
- "and save the output as `dest.hex'. LDmicro exits after compiling,",
- "whether the compile was successful or not. Any messages are printed",
- "to the console. This mode is useful only when running LDmicro from the",
- "command line.",
- "",
- "",
- "BASICS",
- "======",
- "",
- "If you run LDmicro with no arguments then it starts with an empty",
- "program. If you run LDmicro with the name of a ladder program (xxx.ld)",
- "on the command line then it will try to load that program at startup.",
- "LDmicro uses its own internal format for the program; it cannot import",
- "logic from any other tool.",
- "",
- "If you did not load an existing program then you will be given a program",
- "with one empty rung. You could add an instruction to it; for example",
- "you could add a set of contacts (Instruction -> Insert Contacts) named",
- "`Xnew'. `X' means that the contacts will be tied to an input pin on the",
- "microcontroller. You could assign a pin to it later, after choosing a",
- "microcontroller and renaming the contacts. The first letter of a name",
- "indicates what kind of object it is. For example:",
- "",
- " * Xname -- tied to an input pin on the microcontroller",
- " * Yname -- tied to an output pin on the microcontroller",
- " * Rname -- `internal relay': a bit in memory",
- " * Tname -- a timer; turn-on delay, turn-off delay, or retentive",
- " * Cname -- a counter, either count-up or count-down",
- " * Aname -- an integer read from an A/D converter",
- " * name -- a general-purpose (integer) variable",
- "",
- "Choose the rest of the name so that it describes what the object does,",
- "and so that it is unique within the program. The same name always refers",
- "to the same object within the program. For example, it would be an error",
- "to have a turn-on delay (TON) called `Tdelay' and a turn-off delay (TOF)",
- "called `Tdelay' in the same program, since each counter needs its own",
- "memory. On the other hand, it would be correct to have a retentive timer",
- "(RTO) called `Tdelay' and a reset instruction (RES) associated with",
- "`Tdelay', since it that case you want both instructions to work with",
- "the same timer.",
- "",
- "Variable names can consist of letters, numbers, and underscores",
- "(_). A variable name must not start with a number. Variable names are",
- "case-sensitive.",
- "",
- "The general variable instructions (MOV, ADD, EQU, etc.) can work on",
- "variables with any name. This means that they can access timer and",
- "counter accumulators. This may sometimes be useful; for example, you",
- "could check if the count of a timer is in a particular range.",
- "",
- "Variables are always 16 bit integers. This means that they can go",
- "from -32768 to 32767. Variables are always treated as signed. You can",
- "specify literals as normal decimal numbers (0, 1234, -56). You can also",
- "specify ASCII character values ('A', 'z') by putting the character in",
- "single-quotes. You can use an ASCII character code in most places that",
- "you could use a decimal number.",
- "",
- "At the bottom of the screen you will see a list of all the objects in",
- "the program. This list is automatically generated from the program;",
- "there is no need to keep it up to date by hand. Most objects do not",
- "need any configuration. `Xname', `Yname', and `Aname' objects must be",
- "assigned to a pin on the microcontroller, however. First choose which",
- "microcontroller you are using (Settings -> Microcontroller). Then assign",
- "your I/O pins by double-clicking them on the list.",
- "",
- "You can modify the program by inserting or deleting instructions. The",
- "cursor in the program display blinks to indicate the currently selected",
- "instruction and the current insertion point. If it is not blinking then",
- "press <Tab> or click on an instruction. Now you can delete the current",
- "instruction, or you can insert a new instruction to the right or left",
- "(in series with) or above or below (in parallel with) the selected",
- "instruction. Some operations are not allowed. For example, no instructions",
- "are allowed to the right of a coil.",
- "",
- "The program starts with just one rung. You can add more rungs by selecting",
- "Insert Rung Before/After in the Logic menu. You could get the same effect",
- "by placing many complicated subcircuits in parallel within one rung,",
- "but it is more clear to use multiple rungs.",
- "",
- "Once you have written a program, you can test it in simulation, and then",
- "you can compile it to a HEX file for the target microcontroller.",
- "",
- "",
- "SIMULATION",
- "==========",
- "",
- "To enter simulation mode, choose Simulate -> Simulation Mode or press",
- "<Ctrl+M>. The program is shown differently in simulation mode. There is",
- "no longer a cursor. The instructions that are energized show up bright",
- "red; the instructions that are not appear greyed. Press the space bar to",
- "run the PLC one cycle. To cycle continuously in real time, choose",
- "Simulate -> Start Real-Time Simulation, or press <Ctrl+R>. The display of",
- "the program will be updated in real time as the program state changes.",
- "",
- "You can set the state of the inputs to the program by double-clicking",
- "them in the list at the bottom of the screen, or by double-clicking an",
- "`Xname' contacts instruction in the program. If you change the state of",
- "an input pin then that change will not be reflected in how the program",
- "is displayed until the PLC cycles; this will happen automatically if",
- "you are running a real time simulation, or when you press the space bar.",
- "",
- "",
- "COMPILING TO NATIVE CODE",
- "========================",
- "",
- "Ultimately the point is to generate a .hex file that you can program",
- "into your microcontroller. First you must select the part number of the",
- "microcontroller, under the Settings -> Microcontroller menu. Then you",
- "must assign an I/O pin to each `Xname' or `Yname' object. Do this by",
- "double-clicking the object name in the list at the bottom of the screen.",
- "A dialog will pop up where you can choose an unallocated pin from a list.",
- "",
- "Then you must choose the cycle time that you will run with, and you must",
- "tell the compiler what clock speed the micro will be running at. These",
- "are set under the Settings -> MCU Parameters... menu. In general you",
- "should not need to change the cycle time; 10 ms is a good value for most",
- "applications. Type in the frequency of the crystal that you will use",
- "with the microcontroller (or the ceramic resonator, etc.) and click okay.",
- "",
- "Now you can generate code from your program. Choose Compile -> Compile,",
- "or Compile -> Compile As... if you have previously compiled this program",
- "and you want to specify a different output file name. If there are no",
- "errors then LDmicro will generate an Intel IHEX file ready for",
- "programming into your chip.",
- "",
- "Use whatever programming software and hardware you have to load the hex",
- "file into the microcontroller. Remember to set the configuration bits",
- "(fuses)! For PIC16 processors, the configuration bits are included in the",
- "hex file, and most programming software will look there automatically.",
- "For AVR processors you must set the configuration bits by hand.",
- "",
- "",
- "INSTRUCTIONS REFERENCE",
- "======================",
- "",
- "> CONTACT, NORMALLY OPEN Xname Rname Yname",
- " ----] [---- ----] [---- ----] [----",
- "",
- " If the signal going into the instruction is false, then the output",
- " signal is false. If the signal going into the instruction is true,",
- " then the output signal is true if and only if the given input pin,",
- " output pin, or internal relay is true, else it is false. This",
- " instruction can examine the state of an input pin, an output pin,",
- " or an internal relay.",
- "",
- "",
- "> CONTACT, NORMALLY CLOSED Xname Rname Yname",
- " ----]/[---- ----]/[---- ----]/[----",
- "",
- " If the signal going into the instruction is false, then the output",
- " signal is false. If the signal going into the instruction is true,",
- " then the output signal is true if and only if the given input pin,",
- " output pin, or internal relay is false, else it is false. This",
- " instruction can examine the state of an input pin, an output pin,",
- " or an internal relay. This is the opposite of a normally open contact.",
- "",
- "",
- "> COIL, NORMAL Rname Yname",
- " ----( )---- ----( )----",
- "",
- " If the signal going into the instruction is false, then the given",
- " internal relay or output pin is cleared false. If the signal going",
- " into this instruction is true, then the given internal relay or output",
- " pin is set true. It is not meaningful to assign an input variable to a",
- " coil. This instruction must be the rightmost instruction in its rung.",
- "",
- "",
- "> COIL, NEGATED Rname Yname",
- " ----(/)---- ----(/)----",
- "",
- " If the signal going into the instruction is true, then the given",
- " internal relay or output pin is cleared false. If the signal going",
- " into this instruction is false, then the given internal relay or",
- " output pin is set true. It is not meaningful to assign an input",
- " variable to a coil. This is the opposite of a normal coil. This",
- " instruction must be the rightmost instruction in its rung.",
- "",
- "",
- "> COIL, SET-ONLY Rname Yname",
- " ----(S)---- ----(S)----",
- "",
- " If the signal going into the instruction is true, then the given",
- " internal relay or output pin is set true. Otherwise the internal",
- " relay or output pin state is not changed. This instruction can only",
- " change the state of a coil from false to true, so it is typically",
- " used in combination with a reset-only coil. This instruction must",
- " be the rightmost instruction in its rung.",
- "",
- "",
- "> COIL, RESET-ONLY Rname Yname",
- " ----(R)---- ----(R)----",
- "",
- " If the signal going into the instruction is true, then the given",
- " internal relay or output pin is cleared false. Otherwise the",
- " internal relay or output pin state is not changed. This instruction",
- " instruction can only change the state of a coil from true to false,",
- " so it is typically used in combination with a set-only coil. This",
- " instruction must be the rightmost instruction in its rung.",
- "",
- "",
- "> TURN-ON DELAY Tdon ",
- " -[TON 1.000 s]-",
- "",
- " When the signal going into the instruction goes from false to true,",
- " the output signal stays false for 1.000 s before going true. When the",
- " signal going into the instruction goes from true to false, the output",
- " signal goes false immediately. The timer is reset every time the input",
- " goes false; the input must stay true for 1000 consecutive milliseconds",
- " before the output will go true. The delay is configurable.",
- "",
- " The `Tname' variable counts up from zero in units of scan times. The",
- " TON instruction outputs true when the counter variable is greater",
- " than or equal to the given delay. It is possible to manipulate the",
- " counter variable elsewhere, for example with a MOV instruction.",
- "",
- "",
- "> TURN-OFF DELAY Tdoff ",
- " -[TOF 1.000 s]-",
- "",
- " When the signal going into the instruction goes from true to false,",
- " the output signal stays true for 1.000 s before going false. When",
- " the signal going into the instruction goes from false to true,",
- " the output signal goes true immediately. The timer is reset every",
- " time the input goes false; the input must stay false for 1000",
- " consecutive milliseconds before the output will go false. The delay",
- " is configurable.",
- "",
- " The `Tname' variable counts up from zero in units of scan times. The",
- " TON instruction outputs true when the counter variable is greater",
- " than or equal to the given delay. It is possible to manipulate the",
- " counter variable elsewhere, for example with a MOV instruction.",
- "",
- "",
- "> RETENTIVE TIMER Trto ",
- " -[RTO 1.000 s]-",
- "",
- " This instruction keeps track of how long its input has been true. If",
- " its input has been true for at least 1.000 s, then the output is",
- " true. Otherwise the output is false. The input need not have been",
- " true for 1000 consecutive milliseconds; if the input goes true",
- " for 0.6 s, then false for 2.0 s, and then true for 0.4 s, then the",
- " output will go true. After the output goes true it will stay true",
- " even after the input goes false, as long as the input has been true",
- " for longer than 1.000 s. This timer must therefore be reset manually,",
- " using the reset instruction.",
- "",
- " The `Tname' variable counts up from zero in units of scan times. The",
- " TON instruction outputs true when the counter variable is greater",
- " than or equal to the given delay. It is possible to manipulate the",
- " counter variable elsewhere, for example with a MOV instruction.",
- "",
- "",
- "> RESET Trto Citems",
- " ----{RES}---- ----{RES}----",
- "",
- " This instruction resets a timer or a counter. TON and TOF timers are",
- " automatically reset when their input goes false or true, so RES is",
- " not required for these timers. RTO timers and CTU/CTD counters are",
- " not reset automatically, so they must be reset by hand using a RES",
- " instruction. When the input is true, the counter or timer is reset;",
- " when the input is false, no action is taken. This instruction must",
- " be the rightmost instruction in its rung.",
- "",
- "",
- "> ONE-SHOT RISING _",
- " --[OSR_/ ]--",
- "",
- " This instruction normally outputs false. If the instruction's input",
- " is true during this scan and it was false during the previous scan",
- " then the output is true. It therefore generates a pulse one scan",
- " wide on each rising edge of its input signal. This instruction is",
- " useful if you want to trigger events off the rising edge of a signal.",
- "",
- "",
- "> ONE-SHOT FALLING _",
- " --[OSF \\_]--",
- "",
- " This instruction normally outputs false. If the instruction's input",
- " is false during this scan and it was true during the previous scan",
- " then the output is true. It therefore generates a pulse one scan",
- " wide on each falling edge of its input signal. This instruction is",
- " useful if you want to trigger events off the falling edge of a signal.",
- "",
- "",
- "> SHORT CIRCUIT, OPEN CIRCUIT",
- " ----+----+---- ----+ +----",
- "",
- " The output condition of a short-circuit is always equal to its",
- " input condition. The output condition of an open-circuit is always",
- " false. These are mostly useful for debugging.",
- "",
- "",
- "> MASTER CONTROL RELAY",
- " -{MASTER RLY}-",
- "",
- " By default, the rung-in condition of every rung is true. If a master",
- " control relay instruction is executed with a rung-in condition of",
- " false, then the rung-in condition for all following rungs becomes",
- " false. This will continue until the next master control relay",
- " instruction is reached (regardless of the rung-in condition of that",
- " instruction). These instructions must therefore be used in pairs:",
- " one to (maybe conditionally) start the possibly-disabled section,",
- " and one to end it.",
- "",
- "",
- "> MOVE {destvar := } {Tret := }",
- " -{ 123 MOV}- -{ srcvar MOV}-",
- "",
- " When the input to this instruction is true, it sets the given",
- " destination variable equal to the given source variable or",
- " constant. When the input to this instruction is false nothing",
- " happens. You can assign to any variable with the move instruction;",
- " this includes timer and counter state variables, which can be",
- " distinguished by the leading `T' or `C'. For example, an instruction",
- " moving 0 into `Tretentive' is equivalent to a reset (RES) instruction",
- " for that timer. This instruction must be the rightmost instruction",
- " in its rung.",
- "",
- "",
- "> ARITHMETIC OPERATION {ADD kay :=} {SUB Ccnt :=}",
- " -{ 'a' + 10 }- -{ Ccnt - 10 }-",
- "",
- "> {MUL dest :=} {DIV dv := }",
- " -{ var * -990 }- -{ dv / -10000}-",
- "",
- " When the input to this instruction is true, it sets the given",
- " destination variable equal to the given expression. The operands",
- " can be either variables (including timer and counter variables)",
- " or constants. These instructions use 16 bit signed math. Remember",
- " that the result is evaluated every cycle when the input condition",
- " true. If you are incrementing or decrementing a variable (i.e. if",
- " the destination variable is also one of the operands) then you",
- " probably don't want that; typically you would use a one-shot so that",
- " it is evaluated only on the rising or falling edge of the input",
- " condition. Divide truncates; 8 / 3 = 2. This instruction must be",
- " the rightmost instruction in its rung.",
- "",
- "",
- "> COMPARE [var ==] [var >] [1 >=]",
- " -[ var2 ]- -[ 1 ]- -[ Ton]-",
- "",
- "> [var /=] [-4 < ] [1 <=]",
- " -[ var2 ]- -[ vartwo]- -[ Cup]-",
- "",
- " If the input to this instruction is false then the output is false. If",
- " the input is true then the output is true if and only if the given",
- " condition is true. This instruction can be used to compare (equals,",
- " is greater than, is greater than or equal to, does not equal,",
- " is less than, is less than or equal to) a variable to a variable,",
- " or to compare a variable to a 16-bit signed constant.",
- "",
- "",
- "> COUNTER Cname Cname",
- " --[CTU >=5]-- --[CTD >=5]--",
- "",
- " A counter increments (CTU, count up) or decrements (CTD, count",
- " down) the associated count on every rising edge of the rung input",
- " condition (i.e. what the rung input condition goes from false to",
- " true). The output condition from the counter is true if the counter",
- " variable is greater than or equal to 5, and false otherwise. The",
- " rung output condition may be true even if the input condition is",
- " false; it only depends on the counter variable. You can have CTU",
- " and CTD instructions with the same name, in order to increment and",
- " decrement the same counter. The RES instruction can reset a counter,",
- " or you can perform general variable operations on the count variable.",
- "",
- "",
- "> CIRCULAR COUNTER Cname",
- " --{CTC 0:7}--",
- "",
- " A circular counter works like a normal CTU counter, except that",
- " after reaching its upper limit, it resets its counter variable",
- " back to 0. For example, the counter shown above would count 0, 1,",
- " 2, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 2,.... This is useful in",
- " combination with conditional statements on the variable `Cname';",
- " you can use this like a sequencer. CTC counters clock on the rising",
- " edge of the rung input condition condition. This instruction must",
- " be the rightmost instruction in its rung.",
- "",
- "",
- "> SHIFT REGISTER {SHIFT REG }",
- " -{ reg0..3 }-",
- "",
- " A shift register is associated with a set of variables. For example,",
- " this shift register is associated with the variables `reg0', `reg1',",
- " `reg2', and `reg3'. The input to the shift register is `reg0'. On",
- " every rising edge of the rung-in condition, the shift register will",
- " shift right. That means that it assigns `reg3 := reg2', `reg2 :=",
- " reg1'. and `reg1 := reg0'. `reg0' is left unchanged. A large shift",
- " register can easily consume a lot of memory. This instruction must",
- " be the rightmost instruction in its rung.",
- "",
- "",
- "> LOOK-UP TABLE {dest := }",
- " -{ LUT[i] }-",
- "",
- " A look-up table is an ordered set of n values. When the rung-in",
- " condition is true, the integer variable `dest' is set equal to the",
- " entry in the lookup table corresponding to the integer variable",
- " `i'. The index starts from zero, so `i' must be between 0 and",
- " (n-1). The behaviour of this instruction is not defined if the",
- " index is outside this range. This instruction must be the rightmost",
- " instruction in its rung.",
- "",
- "",
- "> PIECEWISE LINEAR TABLE {yvar := }",
- " -{ PWL[xvar] }-",
- "",
- " This is a good way to approximate a complicated function or",
- " curve. It might, for example, be useful if you are trying to apply",
- " a calibration curve to convert a raw output voltage from a sensor",
- " into more convenient units.",
- "",
- " Assume that you are trying to approximate a function that converts",
- " an integer input variable, x, to an integer output variable, y. You",
- " know the function at several points; for example, you might know that",
- "",
- " f(0) = 2",
- " f(5) = 10",
- " f(10) = 50",
- " f(100) = 100",
- "",
- " This means that the points",
- "",
- " (x0, y0) = ( 0, 2)",
- " (x1, y1) = ( 5, 10)",
- " (x2, y2) = ( 10, 50)",
- " (x3, y3) = (100, 100)",
- "",
- " lie on that curve. You can enter those 4 points into a table",
- " associated with the piecewise linear instruction. The piecewise linear",
- " instruction will look at the value of xvar, and set the value of",
- " yvar. It will set yvar in such a way that the piecewise linear curve",
- " will pass through all of the points that you give it; for example,",
- " if you set xvar = 10, then the instruction will set yvar = 50.",
- "",
- " If you give the instruction a value of xvar that lies between two",
- " of the values of x for which you have given it points, then the",
- " instruction will set yvar so that (xvar, yvar) lies on the straight",
- " line connecting those two points in the table. For example, xvar =",
- " 55 gives an output of yvar = 75. (The two points in the table are",
- " (10, 50) and (100, 100). 55 is half-way between 10 and 100, and 75",
- " is half-way between 50 and 100, so (55, 75) lies on the line that",
- " connects those two points.)",
- "",
- " The points must be specified in ascending order by x coordinate. It",
- " may not be possible to perform mathematical operations required for",
- " certain look-up tables using 16-bit integer math; if this is the",
- " case, then LDmicro will warn you. For example, this look up table",
- " will produce an error:",
- "",
- " (x0, y0) = ( 0, 0)",
- " (x1, y1) = (300, 300)",
- "",
- " You can fix these errors by making the distance between points in",
- " the table smaller. For example, this table is equivalent to the one",
- " given above, and it does not produce an error:",
- "",
- " (x0, y0) = ( 0, 0)",
- " (x1, y1) = (150, 150)",
- " (x2, y2) = (300, 300)",
- "",
- " It should hardly ever be necessary to use more than five or six",
- " points. Adding more points makes your code larger and slower to",
- " execute. The behaviour if you pass a value of `xvar' greater than",
- " the greatest x coordinate in the table or less than the smallest x",
- " coordinate in the table is undefined. This instruction must be the",
- " rightmost instruction in its rung.",
- "",
- "",
- "> A/D CONVERTER READ Aname",
- " --{READ ADC}--",
- "",
- " LDmicro can generate code to use the A/D converters built in to",
- " certain microcontrollers. If the input condition to this instruction",
- " is true, then a single sample from the A/D converter is acquired and",
- " stored in the variable `Aname'. This variable can subsequently be",
- " manipulated with general variable operations (less than, greater than,",
- " arithmetic, and so on). Assign a pin to the `Axxx' variable in the",
- " same way that you would assign a pin to a digital input or output,",
- " by double-clicking it in the list at the bottom of the screen. If",
- " the input condition to this rung is false then the variable `Aname'",
- " is left unchanged.",
- "",
- " For all currently-supported devices, 0 volts input corresponds to",
- " an ADC reading of 0, and an input equal to Vdd (the supply voltage)",
- " corresponds to an ADC reading of 1023. If you are using an AVR, then",
- " connect AREF to Vdd. You can use arithmetic operations to scale the",
- " reading to more convenient units afterwards, but remember that you",
- " are using integer math. In general not all pins will be available",
- " for use with the A/D converter. The software will not allow you to",
- " assign non-A/D pins to an analog input. This instruction must be",
- " the rightmost instruction in its rung.",
- "",
- "",
- "> SET PWM DUTY CYCLE duty_cycle",
- " -{PWM 32.8 kHz}-",
- "",
- " LDmicro can generate code to use the PWM peripheral built in to",
- " certain microcontrollers. If the input condition to this instruction",
- " is true, then the duty cycle of the PWM peripheral is set to the",
- " value of the variable duty_cycle. The duty cycle must be a number",
- " between 0 and 100; 0 corresponds to always low, and 100 corresponds to",
- " always high. (If you are familiar with how the PWM peripheral works,",
- " then notice that that means that LDmicro automatically scales the",
- " duty cycle variable from percent to PWM clock periods.)",
- "",
- " You can specify the target PWM frequency, in Hz. The frequency that",
- " you specify might not be exactly achievable, depending on how it",
- " divides into the microcontroller's clock frequency. LDmicro will",
- " choose the closest achievable frequency; if the error is large then",
- " it will warn you. Faster speeds may sacrifice resolution.",
- "",
- " This instruction must be the rightmost instruction in its rung.",
- " The ladder logic runtime consumes one timer to measure the cycle",
- " time. That means that PWM is only available on microcontrollers",
- " with at least two suitable timers. PWM uses pin CCP2 (not CCP1)",
- " on PIC16 chips and OC2 (not OC1A) on AVRs.",
- "",
- "",
- "> MAKE PERSISTENT saved_var",
- " --{PERSIST}--",
- "",
- " When the rung-in condition of this instruction is true, it causes the",
- " specified integer variable to be automatically saved to EEPROM. That",
- " means that its value will persist, even when the micro loses",
- " power. There is no need to explicitly save the variable to EEPROM;",
- " that will happen automatically, whenever the variable changes. The",
- " variable is automatically loaded from EEPROM after power-on reset. If",
- " a variable that changes frequently is made persistent, then the",
- " EEPROM in your micro may wear out very quickly, because it is only",
- " good for a limited (~100 000) number of writes. When the rung-in",
- " condition is false, nothing happens. This instruction must be the",
- " rightmost instruction in its rung.",
- "",
- "",
- "> UART (SERIAL) RECEIVE var",
- " --{UART RECV}--",
- "",
- " LDmicro can generate code to use the UART built in to certain",
- " microcontrollers. On AVRs with multiple UARTs only UART1 (not",
- " UART0) is supported. Configure the baud rate using Settings -> MCU",
- " Parameters. Certain baud rates may not be achievable with certain",
- " crystal frequencies; LDmicro will warn you if this is the case.",
- "",
- " If the input condition to this instruction is false, then nothing",
- " happens. If the input condition is true then this instruction tries",
- " to receive a single character from the UART. If no character is read",
- " then the output condition is false. If a character is read then its",
- " ASCII value is stored in `var', and the output condition is true",
- " for a single PLC cycle.",
- "",
- "",
- "> UART (SERIAL) SEND var",
- " --{UART SEND}--",
- "",
- " LDmicro can generate code to use the UARTs built in to certain",
- " microcontrollers. On AVRS with multiple UARTs only UART1 (not",
- " UART0) is supported. Configure the baud rate using Settings -> MCU",
- " Parameters. Certain baud rates may not be achievable with certain",
- " crystal frequencies; LDmicro will warn you if this is the case.",
- "",
- " If the input condition to this instruction is false, then nothing",
- " happens. If the input condition is true then this instruction writes",
- " a single character to the UART. The ASCII value of the character to",
- " send must previously have been stored in `var'. The output condition",
- " of the rung is true if the UART is busy (currently transmitting a",
- " character), and false otherwise.",
- "",
- " Remember that characters take some time to transmit. Check the output",
- " condition of this instruction to ensure that the first character has",
- " been transmitted before trying to send a second character, or use",
- " a timer to insert a delay between characters. You must only bring",
- " the input condition true (try to send a character) when the output",
- " condition is false (UART is not busy).",
- "",
- " Investigate the formatted string instruction (next) before using this",
- " instruction. The formatted string instruction is much easier to use,",
- " and it is almost certainly capable of doing what you want.",
- "",
- "",
- "> FORMATTED STRING OVER UART var",
- " -{\"Pressure: \\3\\r\\n\"}-",
- "",
- " LDmicro can generate code to use the UARTs built in to certain",
- " microcontrollers. On AVRS with multiple UARTs only UART1 (not",
- " UART0) is supported. Configure the baud rate using Settings -> MCU",
- " Parameters. Certain baud rates may not be achievable with certain",
- " crystal frequencies; LDmicro will warn you if this is the case.",
- "",
- " When the rung-in condition for this instruction goes from false to",
- " true, it starts to send an entire string over the serial port. If",
- " the string contains the special sequence `\\3', then that sequence",
- " will be replaced with the value of `var', which is automatically",
- " converted into a string. The variable will be formatted to take",
- " exactly 3 characters; for example, if `var' is equal to 35, then",
- " the exact string printed will be `Pressure: 35\\r\\n' (note the extra",
- " space). If instead `var' were equal to 1432, then the behaviour would",
- " be undefined, because 1432 has more than three digits. In that case",
- " it would be necessary to use `\\4' instead.",
- "",
- " If the variable might be negative, then use `\\-3d' (or `\\-4d'",
- " etc.) instead. That will cause LDmicro to print a leading space for",
- " positive numbers, and a leading minus sign for negative numbers.",
- "",
- " If multiple formatted string instructions are energized at once",
- " (or if one is energized before another completes), or if these",
- " instructions are intermixed with the UART TX instructions, then the",
- " behaviour is undefined.",
- "",
- " It is also possible to use this instruction to output a fixed string,",
- " without interpolating an integer variable's value into the text that",
- " is sent over serial. In that case simply do not include the special",
- " escape sequence.",
- "",
- " Use `\\\\' for a literal backslash. In addition to the escape sequence",
- " for interpolating an integer variable, the following control",
- " characters are available:",
- " * \\r -- carriage return",
- " * \\n -- newline",
- " * \\f -- formfeed",
- " * \\b -- backspace",
- " * \\xAB -- character with ASCII value 0xAB (hex)",
- "",
- " The rung-out condition of this instruction is true while it is",
- " transmitting data, else false. This instruction consumes a very",
- " large amount of program memory, so it should be used sparingly. The",
- " present implementation is not efficient, but a better one will",
- " require modifications to all the back-ends.",
- "",
- "",
- "A NOTE ON USING MATH",
- "====================",
- "",
- "Remember that LDmicro performs only 16-bit integer math. That means",
- "that the final result of any calculation that you perform must be an",
- "integer between -32768 and 32767. It also mean that the intermediate",
- "results of your calculation must all be within that range.",
- "",
- "For example, let us say that you wanted to calculate y = (1/x)*1200,",
- "where x is between 1 and 20. Then y goes between 1200 and 60, which",
- "fits into a 16-bit integer, so it is at least in theory possible to",
- "perform the calculation. There are two ways that you might code this:",
- "you can perform the reciprocal, and then multiply:",
- "",
- " || {DIV temp :=} ||",
- " ||---------{ 1 / x }----------||",
- " || ||",
- " || {MUL y := } ||",
- " ||----------{ temp * 1200}----------||",
- " || ||",
- "",
- "Or you could just do the division directly, in a single step:",
- "",
- " || {DIV y :=} ||",
- " ||-----------{ 1200 / x }-----------||",
- "",
- "Mathematically, these two are equivalent; but if you try them, then you",
- "will find that the first one gives an incorrect result of y = 0. That",
- "is because the variable `temp' underflows. For example, when x = 3,",
- "(1 / x) = 0.333, but that is not an integer; the division operation",
- "approximates this as temp = 0. Then y = temp * 1200 = 0. In the second",
- "case there is no intermediate result to underflow, so everything works.",
- "",
- "If you are seeing problems with your math, then check intermediate",
- "results for underflow (or overflow, which `wraps around'; for example,",
- "32767 + 1 = -32768). When possible, choose units that put values in",
- "a range of -100 to 100.",
- "",
- "When you need to scale a variable by some factor, do it using a multiply",
- "and a divide. For example, to scale y = 1.8*x, calculate y = (9/5)*x",
- "(which is the same, since 1.8 = 9/5), and code this as y = (9*x)/5,",
- "performing the multiplication first:",
- "",
- " || {MUL temp :=} ||",
- " ||---------{ x * 9 }----------||",
- " || ||",
- " || {DIV y :=} ||",
- " ||-----------{ temp / 5 }-----------||",
- "",
- "This works for all x < (32767 / 9), or x < 3640. For larger values of x,",
- "the variable `temp' would overflow. There is a similar lower limit on x.",
- "",
- "",
- "CODING STYLE",
- "============",
- "",
- "I allow multiple coils in parallel in a single rung. This means that",
- "you can do things like this:",
- "",
- " || Xa Ya ||",
- " 1 ||-------] [--------------( )-------||",
- " || ||",
- " || Xb Yb ||",
- " ||-------] [------+-------( )-------||",
- " || | ||",
- " || | Yc ||",
- " || +-------( )-------||",
- " || ||",
- "",
- "Instead of this:",
- "",
- " || Xa Ya ||",
- " 1 ||-------] [--------------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || Xb Yb ||",
- " 2 ||-------] [--------------( )-------||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || Xb Yc ||",
- " 3 ||-------] [--------------( )-------||",
- " || ||",
- "",
- "This means that in theory you could write any program as one giant rung,",
- "and there is no need to use multiple rungs at all. In practice that",
- "would be a bad idea, because as rungs become more complex they become",
- "more difficult to edit without deleting and redrawing a lot of logic.",
- "",
- "Still, it is often a good idea to group related logic together as a single",
- "rung. This generates nearly identical code to if you made separate rungs,",
- "but it shows that they are related when you look at them on the ladder",
- "diagram.",
- "",
- " * * *",
- "",
- "In general, it is considered poor form to write code in such a way that",
- "its output depends on the order of the rungs. For example, this code",
- "isn't very good if both Xa and Xb might ever be true:",
- "",
- " || Xa {v := } ||",
- " 1 ||-------] [--------{ 12 MOV}--||",
- " || ||",
- " || Xb {v := } ||",
- " ||-------] [--------{ 23 MOV}--||",
- " || ||",
- " || ||",
- " || ||",
- " || ||",
- " || [v >] Yc ||",
- " 2 ||------[ 15]-------------( )-------||",
- " || ||",
- "",
- "I will break this rule if in doing so I can make a piece of code",
- "significantly more compact, though. For example, here is how I would",
- "convert a 4-bit binary quantity on Xb3:0 into an integer:",
- "",
- " || {v := } ||",
- " 3 ||-----------------------------------{ 0 MOV}--||",
- " || ||",
- " || Xb0 {ADD v :=} ||",
- " ||-------] [------------------{ v + 1 }-----------||",
- " || ||",
- " || Xb1 {ADD v :=} ||",
- " ||-------] [------------------{ v + 2 }-----------||",
- " || ||",
- " || Xb2 {ADD v :=} ||",
- " ||-------] [------------------{ v + 4 }-----------||",
- " || ||",
- " || Xb3 {ADD v :=} ||",
- " ||-------] [------------------{ v + 8 }-----------||",
- " || ||",
- "",
- "If the MOV statement were moved to the bottom of the rung instead of the",
- "top, then the value of v when it is read elsewhere in the program would",
- "be 0. The output of this code therefore depends on the order in which",
- "the instructions are evaluated. Considering how cumbersome it would be",
- "to code this any other way, I accept that.",
- "",
- "",
- "BUGS",
- "====",
- "",
- "LDmicro does not generate very efficient code; it is slow to execute, and",
- "wasteful of flash and RAM. In spite of this, a mid-sized PIC or AVR can",
- "do everything that a small PLC can, so this does not bother me very much.",
- "",
- "The maximum length of variable names is highly limited. This is so that",
- "they fit nicely onto the ladder diagram, so I don't see a good solution",
- "to that.",
- "",
- "If your program is too big for the time, program memory, or data memory",
- "constraints of the device that you have chosen then you probably won't",
- "get an error. It will just screw up somewhere.",
- "",
- "Careless programming in the file load/save routines probably makes it",
- "possible to crash or execute arbitrary code given a corrupt or malicious",
- ".ld file.",
- "",
- "Please report additional bugs or feature requests to the author.",
- "",
- "Thanks to:",
- " * Marcelo Solano, for reporting a UI bug under Win98",
- " * Serge V. Polubarjev, for not only noticing that RA3:0 on the",
- " PIC16F628 didn't work but also telling me how to fix it",
- " * Maxim Ibragimov, for reporting and diagnosing major problems",
- " with the till-then-untested ATmega16 and ATmega162 targets",
- " * Bill Kishonti, for reporting that the simulator crashed when the",
- " ladder logic program divided by zero",
- " * Mohamed Tayae, for reporting that persistent variables were broken",
- " on the PIC16F628",
- " * David Rothwell, for reporting several user interface bugs and a",
- " problem with the \"Export as Text\" function",
- "",
- "",
- "COPYING, AND DISCLAIMER",
- "=======================",
- "",
- "DO NOT USE CODE GENERATED BY LDMICRO IN APPLICATIONS WHERE SOFTWARE",
- "FAILURE COULD RESULT IN DANGER TO HUMAN LIFE OR DAMAGE TO PROPERTY. THE",
- "AUTHOR ASSUMES NO LIABILITY FOR ANY DAMAGES RESULTING FROM THE OPERATION",
- "OF LDMICRO OR CODE GENERATED BY LDMICRO.",
- "",
- "This program is free software: you can redistribute it and/or modify it",
- "under the terms of the GNU General Public License as published by the",
- "Free Software Foundation, either version 3 of the License, or (at your",
- "option) any later version.",
- "",
- "This program is distributed in the hope that it will be useful, but",
- "WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY",
- "or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License",
- "for more details.",
- "",
- "You should have received a copy of the GNU General Public License along",
- "with this program. If not, see <http://www.gnu.org/licenses/>.",
- "",
- "",
- "Jonathan Westhues",
- "",
- "Rijswijk -- Dec 2004",
- "Waterloo ON -- Jun, Jul 2005",
- "Cambridge MA -- Sep, Dec 2005",
- " Feb, Mar 2006",
- " Feb 2007",
- "Seattle WA -- Feb 2009",
- "",
- "Email: user jwesthues, at host cq.cx",
- "",
- "",
- NULL
-};
-#endif
-
diff --git a/ldmicro/obj/lang-tables.h b/ldmicro/obj/lang-tables.h
deleted file mode 100644
index 8b290d6..0000000
--- a/ldmicro/obj/lang-tables.h
+++ /dev/null
@@ -1,1568 +0,0 @@
-#ifdef LDLANG_DE
-static LangTable LangDeTable[] = {
- { "Target frequency %d Hz, closest achievable is %d Hz (warning, >5%% error).", "Zielfrequenz %d Hz, nächste erreichbare ist %d Hz (Warnung, >5% Abweichung)." },
- { "Compile successful; wrote IHEX for AVR to '%s'.\r\n\r\nRemember to set the processor configuration (fuses) correctly. This does not happen automatically.", "Kompilierung war erfolgreich. IHEX für AVR gespeichert unter '%s'.\r\n\r\n Die Prozessor-Konfigurationsbits müssen richtig gesetzt werden. Dies geschieht nicht automatisch" },
- { "( ) Normal", "( ) Normal" },
- { "(/) Negated", "(/) Negiert" },
- { "(S) Set-Only", "(S) Setzen" },
- { "(R) Reset-Only", "(R) Rücksetzen" },
- { "Pin on MCU", "Prozessorpin" },
- { "Coil", "Spule" },
- { "Comment", "Kommentar" },
- { "Cycle Time (ms):", "Zykluszeit (ms):" },
- { "Crystal Frequency (MHz):", "Quarzfrequenz (MHz):" },
- { "UART Baud Rate (bps):", "UART Baudrate (bps):" },
- { "Serial (UART) will use pins %d and %d.\r\n\r\n", "Serielles (UART) verwendet die Pins %d und %d.\r\n\r\n" },
- { "Please select a micro with a UART.\r\n\r\n", "Einen Prozessor mit UART wählen.\r\n\r\n" },
- { "No serial instructions (UART Send/UART Receive) are in use; add one to program before setting baud rate.\r\n\r\n", "Keine UART-Anweisung Senden/Empfangen gefunden; die Baudrate festlegen, wenn diese Anweisung verwendet wird.\r\n\r\n" },
- { "The cycle time for the 'PLC' runtime generated by LDmicro is user-configurable. Very short cycle times may not be achievable due to processor speed constraints, and very long cycle times may not be achievable due to hardware overflows. Cycle times between 10 ms and 100 ms will usually be practical.\r\n\r\nThe compiler must know what speed crystal you are using with the micro to convert between timing in clock cycles and timing in seconds. A 4 MHz to 20 MHz crystal is typical; check the speed grade of the part you are using to determine the maximum allowable clock speed before choosing a crystal.", "Die von LDmicro erzeugte Zykluszeit des SPS-Ablaufs ist vom Anwender konfigurierbar. Sehr kurze Zykluszeiten können wegen Prozessorbeschränkungen nicht erreichbar sein, und sehr lange Zykluszeiten können wegen Hardware-Überlaufs nicht erreichbar sein. Zykluszeiten zwischen 10 ms und 100 ms sind üblich.\r\n\r\nFür die Umrechnung des Taktzykluses und der Zeitberechnung in Sekunden, muss der Compiler wissen, welche Quarzfrequenz beim Prozessor verwendet wird. Ein Quarz mit 4 bis 20 MHz ist üblich; Überprüfen Sie die Geschwindigkeit Ihres Prozessors, um die maximal erlaubte Taktgeschwindigkeit zu bestimmen, bevor Sie einen Quarz wählen." },
- { "PLC Configuration", "SPS-Konfiguration" },
- { "Zero cycle time not valid; resetting to 10 ms.", "Zykluszeit = 0, nicht zulässig; wird auf 10 ms gesetzt." },
- { "Source", "Quelle" },
- { "Internal Relay", "Merker" },
- { "Input pin", "Eingangspin" },
- { "Output pin", "Ausgangspin" },
- { "|/| Negated", "|/| Negiert" },
- { "Contacts", "Kontakte" },
- { "No ADC or ADC not supported for selected micro.", "Kein A/D-Wandler vorhanden oder A/D-Wandler wird vom gewählten Prozessor nicht unterstützt." },
- { "Assign:", "Zuweisen:" },
- { "No microcontroller has been selected. You must select a microcontroller before you can assign I/O pins.\r\n\r\nSelect a microcontroller under the Settings menu and try again.", "Kein Prozessor gewählt. Sie müssen einen Prozessor wählen, bevor Sie E/A Pins zuweisen können.\r\n\r\nWählen Sie einen Prozessor im Voreinstellungs-Menu und versuchen es noch mal." },
- { "I/O Pin Assignment", "E/A Pin Zuweisung" },
- { "Can't specify I/O assignment for ANSI C target; compile and see comments in generated source code.", "Keine E/A Zuweisung für ANSI C-Ziel möglich; kompilieren Sie und beachten die Kommentare im erzeugten Quellcode." },
- { "Can't specify I/O assignment for interpretable target; see comments in reference implementation of interpreter.", "Keine E/A Zuweisung für ANSI C-Ziel möglich; beachten Sie die Kommentare der Referenz-Ausführung des Interpreters." },
- { "Can only assign pin number to input/output pins (Xname or Yname or Aname).", "Nur für Ein- und Ausgangspins können Pin-Nummern vergeben werden (XName oder YName oder AName)." },
- { "No ADC or ADC not supported for this micro.", "Kein A/D-Wandler vorhanden oder A/D-Wandler wird vom gewählten Prozessor nicht unterstützt." },
- { "Rename I/O from default name ('%s') before assigning MCU pin.", "Die Standardbezeichnung ('%s') des E/A’s vor der Zuweisung des Prozessorpins ändern." },
- { "I/O Pin", "E/A Pin" },
- { "(no pin)", "(kein Pin)" },
- { "<UART needs!>", "<UART benötigt!>" },
- { "<PWM needs!>", "<PWM benötigt!>" },
- { "<not an I/O!>", "<kein E/A!>" },
- { "Export As Text", "Als Text exportieren" },
- { "Couldn't write to '%s'.", "Speichern nicht möglich unter '%s'." },
- { "Compile To", "Kompilieren unter" },
- { "Must choose a target microcontroller before compiling.", "Vor dem Kompilieren muss ein Prozessor gewählt werden." },
- { "UART function used but not supported for this micro.", "Dieser Prozessor unterstützt keine UART-Funktion." },
- { "PWM function used but not supported for this micro.", "Dieser Prozessor unterstützt keine PWM-Funktion." },
- { "The program has changed since it was last saved.\r\n\r\nDo you want to save the changes?", "Das Programm wurde nach dem letzten Speichern geändert.\r\n\r\n Möchten Sie die Änderungen speichern?" },
- { "--add comment here--", "--Hier Komentar einfügen--" },
- { "Start new program?", "Neues Programm starten?" },
- { "Couldn't open '%s'.", "Kann nicht geöffnet werden '%s'." },
- { "Name", "Name" },
- { "State", "Status" },
- { "Pin on Processor", "Prozessorpin" },
- { "MCU Port", "Prozessor-Port" },
- { "LDmicro - Simulation (Running)", "LDmicro - Simulation (am Laufen)" },
- { "LDmicro - Simulation (Stopped)", "LDmicro - Simulation (Angehalten)" },
- { "LDmicro - Program Editor", "LDmicro – Programm-Editor" },
- { " - (not yet saved)", " - (noch nicht gespeichert)" },
- { "&New\tCtrl+N", "&Neu\tStrg+N" },
- { "&Open...\tCtrl+O", "&Öffnen...\tStrg+O" },
- { "&Save\tCtrl+S", "&Speichern\tStrg+S" },
- { "Save &As...", "Speichern &unter..." },
- { "&Export As Text...\tCtrl+E", "&Als Text exportieren...\tStrg+E" },
- { "E&xit", "&Beenden" },
- { "&Undo\tCtrl+Z", "&Aufheben\tStrg+Z" },
- { "&Redo\tCtrl+Y", "&Wiederherstellen\tStrg+Y" },
- { "Insert Rung &Before\tShift+6", "Netzwerk Einfügen &Davor\tShift+6" },
- { "Insert Rung &After\tShift+V", "Netzwerk Einfügen &Danach\tShift+V" },
- { "Move Selected Rung &Up\tShift+Up", "Gewähltes Netzwerk schieben &nach oben\tShift+Up" },
- { "Move Selected Rung &Down\tShift+Down", "Gewähltes Netzwerk schieben &nach unten\tShift+Down" },
- { "&Delete Selected Element\tDel", "&Gewähltes Element löschen\tEntf" },
- { "D&elete Rung\tShift+Del", "Netzwerk löschen\tShift+Entf" },
- { "Insert Co&mment\t;", "Kommentar &einfügen\t;" },
- { "Insert &Contacts\tC", "Kontakt &einfügen\tC" },
- { "Insert OSR (One Shot Rising)\t&/", "OSR einfügen (Steigende Flanke)\t&/" },
- { "Insert OSF (One Shot Falling)\t&\\", "OSF einfügen (Fallende Flanke)\t&\\" },
- { "Insert T&ON (Delayed Turn On)\tO", "T&ON einfügen (Anzugsverzögerung)\tO" },
- { "Insert TO&F (Delayed Turn Off)\tF", "TO&F einfügen (Abfallverzögerung)\tF" },
- { "Insert R&TO (Retentive Delayed Turn On)\tT", "R&TO einfügen (Speichernde Anzugsverzögerung)\tT" },
- { "Insert CT&U (Count Up)\tU", "CT&U einfügen (Aufwärtszähler)\tU" },
- { "Insert CT&D (Count Down)\tI", "CT&D einfügen (Abwärtszähler)\tI" },
- { "Insert CT&C (Count Circular)\tJ", "CT&C einfügen (Zirkulierender Zähler)\tJ" },
- { "Insert EQU (Compare for Equals)\t=", "EQU einfügen (Vergleich auf gleich)\t=" },
- { "Insert NEQ (Compare for Not Equals)", "NEQ einfügen (Vergleich auf ungleich)" },
- { "Insert GRT (Compare for Greater Than)\t>", "GRT einfügen (Vergleich auf größer)\t>" },
- { "Insert GEQ (Compare for Greater Than or Equal)\t.", "GEQ einfügen (Vergleich auf größer oder gleich)\t." },
- { "Insert LES (Compare for Less Than)\t<", "LES einfügen (Vergleich auf kleiner)\t<" },
- { "Insert LEQ (Compare for Less Than or Equal)\t,", "LEQ einfügen (Vergleich auf kleiner oder gleich)\t," },
- { "Insert Open-Circuit", "Öffnung einfügen" },
- { "Insert Short-Circuit", "Brücke einfügen" },
- { "Insert Master Control Relay", "Master Control Relais einfügen" },
- { "Insert Coi&l\tL", "Spule einfügen \tL" },
- { "Insert R&ES (Counter/RTO Reset)\tE", "R&ES einfügen (RTO/Zähler rücksetzen)\tE" },
- { "Insert MOV (Move)\tM", "Transferieren (Move) einfügen\tM" },
- { "Insert ADD (16-bit Integer Add)\t+", "ADD einfügen (16-bit Ganzzahl Addierer)\t+" },
- { "Insert SUB (16-bit Integer Subtract)\t-", "SUB einfügen (16-bit Ganzzahl Subtrahierer)\t-" },
- { "Insert MUL (16-bit Integer Multiply)\t*", "MUL einfügen (16-bit Ganzzahl Multiplizierer)\t*" },
- { "Insert DIV (16-bit Integer Divide)\tD", "DIV einfügen (16-bit Ganzzahl Dividierer)\tD" },
- { "Insert Shift Register", "Schieberegister einfügen" },
- { "Insert Look-Up Table", "Nachschlag-Tabelle einfügen" },
- { "Insert Piecewise Linear", "Näherungs-Linear-Tabelle einfügen" },
- { "Insert Formatted String Over UART", "Formatierte Zeichenfolge über UART einfügen" },
- { "Insert &UART Send", "&UART Senden einfügen" },
- { "Insert &UART Receive", "&UART Empfangen einfügen" },
- { "Insert Set PWM Output", "PWM Ausgang einfügen" },
- { "Insert A/D Converter Read\tP", "A/D-Wandler Einlesen einfügen\tP" },
- { "Insert Make Persistent", "Remanent machen einfügen" },
- { "Make Norm&al\tA", "Auf Normal ändern\tA" },
- { "Make &Negated\tN", "Auf &Negieren ändern\tN" },
- { "Make &Set-Only\tS", "Auf &Setzen ändern\tS" },
- { "Make &Reset-Only\tR", "Auf &Rücksetzen ändern\tR" },
- { "&MCU Parameters...", "&Prozessor-Parameter..." },
- { "(no microcontroller)", "(kein Prozessor)" },
- { "&Microcontroller", "&Mikroprozessor" },
- { "Si&mulation Mode\tCtrl+M", "Simulationsbetrieb\tStrg+M" },
- { "Start &Real-Time Simulation\tCtrl+R", "Start &Echtzeit- Simulation\tStrg+R" },
- { "&Halt Simulation\tCtrl+H", "&Simulation Anhalten\tStrg+H" },
- { "Single &Cycle\tSpace", "&Einzelzyklus\tLeertaste" },
- { "&Compile\tF5", "&Kompilieren\tF5" },
- { "Compile &As...", "Kompilieren &unter..." },
- { "&Manual...\tF1", "&Handbuch...\tF1" },
- { "&About...", "&Über LDmicro..." },
- { "&File", "&Datei" },
- { "&Edit", "&Bearbeiten" },
- { "&Settings", "&Voreinstellungen" },
- { "&Instruction", "&Anweisung" },
- { "Si&mulate", "Simulieren" },
- { "&Compile", "&Kompilieren" },
- { "&Help", "&Hilfe" },
- { "no MCU selected", "kein Prozessor gewählt" },
- { "cycle time %.2f ms", "Zykluszeit %.2f ms" },
- { "processor clock %.4f MHz", "Taktfrequenz Prozessor %.4f MHz" },
- { "Internal error relating to PIC paging; make program smaller or reshuffle it.", "Interner Fehler beim PIC paging Seitenwechsel; Programm verkleinern oder umbilden" },
- { "PWM frequency too fast.", "PWM Frequenz zu schnell." },
- { "PWM frequency too slow.", "PWM Frequenz zu langsam." },
- { "Cycle time too fast; increase cycle time, or use faster crystal.", "Zykluszeit zu schnell; Zykluszeit vergrößern oder schnelleren Quarz wählen." },
- { "Cycle time too slow; decrease cycle time, or use slower crystal.", "Zykluszeit zu langsam; Zykluszeit verringern oder langsameren Quarz wählen." },
- { "Couldn't open file '%s'", "Datei konnte nicht geöffnet werden '%s'" },
- { "Zero baud rate not possible.", "Baudrate = 0 nicht möglich" },
- { "Compile successful; wrote IHEX for PIC16 to '%s'.\r\n\r\nConfiguration word (fuses) has been set for crystal oscillator, BOD enabled, LVP disabled, PWRT enabled, all code protection off.\r\n\r\nUsed %d/%d words of program flash (chip %d%% full).", "Kompilierung war erfolgreich; IHEX für PIC16 gespeichert unter '%s'.\r\n\r\nKonfigurations-Wort (fuse) für Quarz-Oszillator festgelegt, BOD aktiviert, LVP gesperrt, PWRT aktiviert, Verschlüsselungsschutz aus.\r\n\r\nVerwendete %d/%d Worte des Flash-Speichers (Chip %d%% voll)." },
- { "Type", "Typ" },
- { "Timer", "Timer" },
- { "Counter", "Zähler" },
- { "Reset", "Rücksetzen" },
- { "OK", "OK" },
- { "Cancel", "Abbrechen" },
- { "Empty textbox; not permitted.", "Leere Testbox; nicht erlaubt" },
- { "Bad use of quotes: <%s>", "Quoten falsch verwendet: <%s>" },
- { "Turn-On Delay", "Anzugsverzögerung" },
- { "Turn-Off Delay", "Abfallverzögerung" },
- { "Retentive Turn-On Delay", "Speichernde Anzugsverzögerung" },
- { "Delay (ms):", "Verzögerung (ms):" },
- { "Delay too long; maximum is 2**31 us.", "Verzögerung zu lang; maximal 2**31 us." },
- { "Delay cannot be zero or negative.", "Verzögerung kann nicht gleich Null oder negativ sein." },
- { "Count Up", "Aufwärtszählen" },
- { "Count Down", "Abwärtszählen" },
- { "Circular Counter", "Zirkulierender Zähler" },
- { "Max value:", "Maximalwert:" },
- { "True if >= :", "Wahr wenn >= :" },
- { "If Equals", "Wenn gleich" },
- { "If Not Equals", "Wenn ungleich" },
- { "If Greater Than", "Wenn größer als" },
- { "If Greater Than or Equal To", "Wenn größer als oder gleich" },
- { "If Less Than", "Wenn kleiner als" },
- { "If Less Than or Equal To", "Wenn kleiner als oder gleich" },
- { "'Closed' if:", "'Geschlossen' wenn:" },
- { "Move", "Transferieren" },
- { "Read A/D Converter", "A/D-Wandler einlesen" },
- { "Duty cycle var:", "Einsatzzyklus Var:" },
- { "Frequency (Hz):", "Frequenz (Hz):" },
- { "Set PWM Duty Cycle", "PWM Einsatzzyklus eingeben" },
- { "Source:", "Quelle:" },
- { "Receive from UART", "Mit UART empfangen" },
- { "Send to UART", "Mit UART senden" },
- { "Add", "Addieren" },
- { "Subtract", "Subtrahieren" },
- { "Multiply", "Multiplizieren" },
- { "Divide", "Dividieren" },
- { "Destination:", "Ziel:" },
- { "is set := :", "gesetzt auf := :" },
- { "Name:", "Name:" },
- { "Stages:", "Stufen:" },
- { "Shift Register", "Schieberegister" },
- { "Not a reasonable size for a shift register.", "Kein angemessenes Format für ein Schieberegister." },
- { "String:", "Zeichensatz:" },
- { "Formatted String Over UART", "Formatierter Zeichensatz über UART" },
- { "Variable:", "Variable:" },
- { "Make Persistent", "Remanent machen" },
- { "Too many elements in subcircuit!", "Zu viele Elemente im Netzwerk!" },
- { "Too many rungs!", "Zu viele Netzwerke!" },
- { "Error", "Fehler" },
- { "ANSI C target does not support peripherals (UART, PWM, ADC, EEPROM). Skipping that instruction.", "ANSI C Zieldatei unterstützt keine Peripherien (wie UART, ADC, EEPROM). Die Anweisung wird ausgelassen." },
- { "Compile successful; wrote C source code to '%s'.\r\n\r\nThis is not a complete C program. You have to provide the runtime and all the I/O routines. See the comments in the source code for information about how to do this.", "Die Kompilierung war erfolgreich; der C-Quellcode wurde gespeichert unter '%s'.\r\n\r\nDies ist kein komplettes C-Programm. Sie müssen die Laufzeit und alle E/A Routinen vorgeben. Siehe die Kommentare im Quellcode für Informationen, wie man das macht." },
- { "Cannot delete rung; program must have at least one rung.", "Das Netzwerk nicht löschbar, das Programm muss mindestens ein Netzwerk haben." },
- { "Out of memory; simplify program or choose microcontroller with more memory.", "Speicher voll; vereinfachen Sie das Programm oder wählen Sie einen Prozessor mit mehr Speicherkapazität." },
- { "Must assign pins for all ADC inputs (name '%s').", "Für alle ADC-Eingänge müssen Pins zugewiesen werden (Name '%s')." },
- { "Internal limit exceeded (number of vars)", "Interne Begrenzung überschritten (Anzahl der Variablen)" },
- { "Internal relay '%s' never assigned; add its coil somewhere.", "Keine Zuweisung für Merker '%s', vergeben Sie eine Spule im Programm." },
- { "Must assign pins for all I/O.\r\n\r\n'%s' is not assigned.", "Für alle E/A's müssen Pins zugewiesen werden.\r\n\r\n'%s' ist nicht zugewiesen." },
- { "UART in use; pins %d and %d reserved for that.", "UART in Verwendung; Pins %d und %d sind hierfür reserviert." },
- { "PWM in use; pin %d reserved for that.", "PWM in Verwendung; Pin %d hierfür reserviert." },
- { "UART baud rate generator: divisor=%d actual=%.4f for %.2f%% error.\r\n\r\nThis is too large; try a different baud rate (slower probably), or a crystal frequency chosen to be divisible by many common baud rates (e.g. 3.6864 MHz, 14.7456 MHz).\r\n\r\nCode will be generated anyways but serial may be unreliable or completely broken.", "UART Baudraten-Generator: Divisor=%d aktuell=%.4f für %.2f%% Fehler.\r\n\r\nDiese ist zu hoch; versuchen Sie es mit einer anderen Baudrate (wahrscheinlich langsamer), oder eine Quarzfrequenz wählen die von vielen üblichen Baudraten teilbar ist (wie 3.6864MHz, 14.7456MHz).\r\n\r\nCode wird trotzdem erzeugt, aber er kann unzuverlässig oder beschädigt sein." },
- { "UART baud rate generator: too slow, divisor overflows. Use a slower crystal or a faster baud rate.\r\n\r\nCode will be generated anyways but serial will likely be completely broken.", "UART Baudraten-Generator: Zu langsam, der Divisor hat Überlauf. Einen langsameren Quarz oder schnellere Baudrate verwenden.\r\n\r\nCode wird trotzdem erzeugt, aber er wird wahrscheinlich beschädigt sein." },
- { "Couldn't open '%s'\n", "Konnte nicht geöffnet werden '%s'\n" },
- { "Timer period too short (needs faster cycle time).", "Timer-Intervall zu kurz (schnellere Zykluszeit nötig)." },
- { "Timer period too long (max 32767 times cycle time); use a slower cycle time.", "Timer-Intervall zu lang (max. 32767mal die Zykluszeit); langsamere Zykluszeit verwenden." },
- { "Constant %d out of range: -32768 to 32767 inclusive.", "Konstante %d außerhalb des Bereichs: -32768 bis 32767 inklusive." },
- { "Move instruction: '%s' not a valid destination.", "Transfer-Anweisung: '%s' ist keine gültige Zieladresse." },
- { "Math instruction: '%s' not a valid destination.", "Mathem. Anweisung: '%s'keine gültige Zieladresse." },
- { "Piecewise linear lookup table with zero elements!", "Näherungs-Linear-Tabelle ohne Elemente!" },
- { "x values in piecewise linear table must be strictly increasing.", "Die x-Werte in der Näherungs-Linear-Tabelle müssen strikt aufsteigend sein." },
- { "Numerical problem with piecewise linear lookup table. Either make the table entries smaller, or space the points together more closely.\r\n\r\nSee the help file for details.", "Zahlenmäßiges Problem mit der Näherungs-Linear-Tabelle. Entweder die Eingangswerte der Tabelle verringern, oder die Punkte näher zusammen legen.\r\n\r\nFür Details siehe unter Hilfe." },
- { "Multiple escapes (\\0-9) present in format string, not allowed.", "Mehrfacher Zeilenumbruch (\\0-9)in formatierter Zeichenfolge nicht gestattet." },
- { "Bad escape: correct form is \\xAB.", "Falscher Zeilenumbruch: Korrekte Form = \\xAB." },
- { "Bad escape '\\%c'", "Falscher Zeilenumbruch '\\%c'" },
- { "Variable is interpolated into formatted string, but none is specified.", "Formatierte Zeichenfolge enthält Variable, aber keine ist angegeben." },
- { "No variable is interpolated into formatted string, but a variable name is specified. Include a string like '\\-3', or leave variable name blank.", "Keine Variable in formatierter Zeichenfolge eingefügt, aber ein Variabelen-Name wurde vergeben. Geben Sie eine Zeichenfolge ein, wie z.B. '\\-3', oder den Variabelen-Namen unausgefüllt lassen." },
- { "Empty row; delete it or add instructions before compiling.", "Leere Reihe; vor dem Kompilieren löschen oder Anweisungen einfügen." },
- { "Couldn't write to '%s'", "Nicht möglich, speichern unter '%s'." },
- { "Unsupported op (anything ADC, PWM, UART, EEPROM) for interpretable target.", "Keine unterstützte Operation der interpretierbaren Zieldatei (kein ADC, PWM, UART, EEPROM möglich)." },
- { "Compile successful; wrote interpretable code to '%s'.\r\n\r\nYou probably have to adapt the interpreter to your application. See the documentation.", "Kompilierung war erfolgreich; interpretierbarer Code gespeichert unter '%s'.\r\n\r\nWahrscheinlich müssen Sie den Interpreter an Ihre Anwendung anpassen. Siehe Dokumentation." },
- { "Microcontroller '%s' not supported.\r\n\r\nDefaulting to no selected MCU.", "Prozessor '%s' nicht unterstützt.\r\n\r\nZurück zu: Kein Prozessor gewählt." },
- { "File format error; perhaps this program is for a newer version of LDmicro?", "Fehler beim Dateiformat; vielleicht ist dies ein Programm für eine neuere Version von LDmicro." },
- { "Index:", "Liste:" },
- { "Points:", "Punkte:" },
- { "Count:", "Berechnung:" },
- { "Edit table of ASCII values like a string", "ASCII-Werte Tabelle als Zeichenfolge ausgeben" },
- { "Look-Up Table", "Nachschlag-Tabelle" },
- { "Piecewise Linear Table", "Näherungs-Linear-Tabelle" },
- { "LDmicro Error", "Fehler LDmicro" },
- { "Compile Successful", "Kompilierung war erfolgreich" },
- { "digital in", "Digitaler Eingang" },
- { "digital out", "Digitaler Ausgang" },
- { "int. relay", "Merker" },
- { "UART tx", "UART tx" },
- { "UART rx", "UART rx" },
- { "PWM out", "PWM Ausgang" },
- { "turn-on delay", "Anzugsverzögerung" },
- { "turn-off delay", "Abfallverzögerung" },
- { "retentive timer", "Speichernder Timer" },
- { "counter", "Zähler" },
- { "general var", "Allg. Variable" },
- { "adc input", "ADC Eingang" },
- { "<corrupt!>", "<beschädigt!>" },
- { "(not assigned)", "(nicht zugewiesen)" },
- { "<no UART!>", "<kein UART!>" },
- { "<no PWM!>", "<kein PWM!>" },
- { "TOF: variable cannot be used elsewhere", "TOF: Variable kann andernorts nicht verwendet werden" },
- { "TON: variable cannot be used elsewhere", "TON: Variable kann andernorts nicht verwendet werden" },
- { "RTO: variable can only be used for RES elsewhere", "RTO: Variable kann andernorts nur für RES verwendet werden" },
- { "Variable '%s' not assigned to, e.g. with a MOV statement, an ADD statement, etc.\r\n\r\nThis is probably a programming error; now it will always be zero.", "Variable '%s' nicht zugewiesen, z.B. zu einer Transfer- oder ADD-Anweisung usw.\r\n\r\nDas ist vermutlich ein Programmierungsfehler; jetzt wird sie immer Null sein." },
- { "Variable for '%s' incorrectly assigned: %s.", "Variable für '%s' falsch zugewiesen: %s." },
- { "Division by zero; halting simulation", "Division durch Null; Simulation gestoppt" },
- { "!!!too long!!!", " !!!zu lang!!!" },
- { "\n\nI/O ASSIGNMENT:\n\n", "\n\nE/A Zuweisungen:\n\n" },
- { " Name | Type | Pin\n", " Name | Typ | Pin\n" },
-};
-static Lang LangDe = {
- LangDeTable, sizeof(LangDeTable)/sizeof(LangDeTable[0])
-};
-#endif
-#ifdef LDLANG_ES
-static LangTable LangEsTable[] = {
- { "Target frequency %d Hz, closest achievable is %d Hz (warning, >5%% error).", "Frecuencia Micro %d Hz, la mejor aproximación es %d Hz (aviso, >5%% error)." },
- { "Compile successful; wrote IHEX for AVR to '%s'.\r\n\r\nRemember to set the processor configuration (fuses) correctly. This does not happen automatically.", "Compilación correcta; se escribió IHEX para AVR en '%s'.\r\n\r\nRecuerde marcar la configuración (fuses) del micro correctamente. Esto NO se hace automaticamente." },
- { "( ) Normal", "( ) Normal" },
- { "(/) Negated", "(/) Negado" },
- { "(S) Set-Only", "(S) Activar" },
- { "(R) Reset-Only", "(R) Desactivar" },
- { "Pin on MCU", "Pata del Micro" },
- { "Coil", "Bobina" },
- { "Comment", "Comentario" },
- { "Cycle Time (ms):", "Tiempo Ciclo (ms):" },
- { "Crystal Frequency (MHz):", "Frecuencia Cristal (MHz):" },
- { "UART Baud Rate (bps):", "Baudios UART (bps):" },
- { "Serie (UART) will use pins %d and %d.\r\n\r\n", "Puerto Serie (UART) usará las patas %d y %d.\r\n\r\n" },
- { "Please select a micro with a UART.\r\n\r\n", "Por favor. Seleccione un micro con UART.\r\n\r\n" },
- { "No serial instructions (UART Send/UART Receive) are in use; add one to program before setting baud rate.\r\n\r\n", "No se han usado instrucciones (UART Enviar/UART Recibir) para el puerto serie aun; Añada una al programa antes de configurar los baudios.\r\n\r\n" },
- { "The cycle time for the 'PLC' runtime generated by LDmicro is user-configurable. Very short cycle times may not be achievable due to processor speed constraints, and very long cycle times may not be achievable due to hardware overflows. Cycle times between 10 ms and 100 ms will usually be practical.\r\n\r\nThe compiler must know what speed crystal you are using with the micro to convert between timing in clock cycles and timing in seconds. A 4 MHz to 20 MHz crystal is typical; check the speed grade of the part you are using to determine the maximum allowable clock speed before choosing a crystal.", "El tiempo de ciclo de ejecución para el 'PLC' es configurable. Un tiempo de ciclo muy corto puede no funcionar debido a la baja velocidad del micro, y un tiempo de ciclo muy largo puede no funcionar por limitaciones del temporizador del micro. Ciclos de tiempo entre 10 y 100 ms suele ser lo normal.\r\n\r\nEl compilador debe conocer la velocidad del cristal que estas usando para poder convertir entre tiempo en ciclos de reloj y tiempo en segundos. Un cristal entre 4 Mhz y 20 Mhz es lo típico; Comprueba la velocidad a la que puede funcionar tu micro y calcula la velocidad máxima del reloj antes de elegir el cristal." },
- { "PLC Configuration", "Configuración PLC" },
- { "Zero cycle time not valid; resetting to 10 ms.", "No es valido un tiempo de ciclo 0; forzado a 10 ms." },
- { "Source", "Fuente" },
- { "Internal Relay", "Rele Interno" },
- { "Input pin", "Pata Entrada" },
- { "Output pin", "Pata Salida" },
- { "|/| Negated", "|/| Negado" },
- { "Contacts", "Contacto" },
- { "No ADC or ADC not supported for selected micro.", "El micro seleccionado no tiene ADC o no esta soportado." },
- { "Assign:", "Asignar:" },
- { "No microcontroller has been selected. You must select a microcontroller before you can assign I/O pins.\r\n\r\nSelect a microcontroller under the Settings menu and try again.", "No se ha seleccionado micro. Debes seleccionar un micro antes de asignar patas E/S.\r\n\r\nElije un micro en el menu de configuración y prueba otra vez." },
- { "I/O Pin Assignment", "Asignación de pata E/S" },
- { "Can't specify I/O assignment for ANSI C target; compile and see comments in generated source code.", "No se puede asignar la E/S especificadas para el ANSI C generado; compile y vea los comentarios generados en el código fuente." },
- { "Can't specify I/O assignment for interpretable target; see comments in reference implementation of interpreter.", "No se puede asignar la E/S especificadas para el código generado para el interprete; vea los comentarios en la implementación del interprete." },
- { "Can only assign pin number to input/output pins (Xname or Yname or Aname).", "Solo puede asignar numero de pata a las patas de Entrada/Salida (Xname o Yname o Aname)." },
- { "No ADC or ADC not supported for this micro.", "Este micro no tiene ADC o no esta soportado." },
- { "Rename I/O from default name ('%s') before assigning MCU pin.", "Cambie el nombre por defecto ('%s') antes de asignarle una pata del micro." },
- { "I/O Pin", "E/S Pata" },
- { "(no pin)", "(falta pata)" },
- { "<UART needs!>", "<Se necesita UART!>" },
- { "<PWM needs!>", "<Se necesita PWM!>" },
- { "<not an I/O!>", "<No es una E/S!>" },
- { "Export As Text", "Exportar como Texto" },
- { "Couldn't write to '%s'.", "No puedo escribir en '%s'." },
- { "Compile To", "Compilar" },
- { "Must choose a target microcontroller before compiling.", "Debe elegir un micro antes de compilar." },
- { "UART function used but not supported for this micro.", "Usadas Funciones para UART. Este micro no las soporta." },
- { "PWM function used but not supported for this micro.", "Usadas Funciones para PWM. Este micro no las soporta." },
- { "The program has changed since it was last saved.\r\n\r\nDo you want to save the changes?", "El programa ha cambiado desde la última vez que los guardo.\r\n\r\n¿Quieres guardar los cambios?" },
- { "--add comment here--", "--añade el comentario aquí--" },
- { "Start new program?", "¿Empezar un nuevo programa?" },
- { "Couldn't open '%s'.", "No puedo abrir '%s'." },
- { "Name", "Nombre" },
- { "State", "Estado" },
- { "Pin on Processor", "Pata del Micro" },
- { "MCU Port", "Puerto del Micro" },
- { "LDmicro - Simulation (Running)", "LDmicro - Simulación (Ejecutando)" },
- { "LDmicro - Simulation (Stopped)", "LDmicro - Simulación (Parada)" },
- { "LDmicro - Program Editor", "LDmicro – Editor de Programa" },
- { " - (not yet saved)", " - (no guardado aún)" },
- { "&New\tCtrl+N", "&Nuevo\tCtrl+N" },
- { "&Open...\tCtrl+O", "&Abrir...\tCtrl+O" },
- { "&Save\tCtrl+S", "&Guardar\tCtrl+S" },
- { "Save &As...", "Guardar &Como..." },
- { "&Export As Text...\tCtrl+E", "&Exportar a Texto...\tCtrl+E" },
- { "E&xit", "&Salir" },
- { "&Undo\tCtrl+Z", "&Deshacer\tCtrl+Z" },
- { "&Redo\tCtrl+Y", "&Rehacer\tCtrl+Y" },
- { "Insert Rung &Before\tShift+6", "Insertar Línea (Rung) &Antes\tShift+6" },
- { "Insert Rung &After\tShift+V", "Insertar Línea (Rung) &Despues\tShift+V" },
- { "Move Selected Rung &Up\tShift+Up", "Subir Línea (Rung) Seleccionada\tShift+Up" },
- { "Move Selected Rung &Down\tShift+Down", "Bajar Línea (Rung) Seleccionada\tShift+Down" },
- { "&Delete Selected Element\tDel", "&Borrar Elemento Seleccionado\tSupr" },
- { "D&elete Rung\tShift+Del", "B&orrar Línea (Rung) Seleccionada\tShift+Supr" },
- { "Insert Co&mment\t;", "Insertar Co&mentario\t;" },
- { "Insert &Contacts\tC", "Insertar &Contacto\tC" },
- { "Insert OSR (One Shot Rising)\t&/", "Insertar OSR (Flanco de Subida)\t&/" },
- { "Insert OSF (One Shot Falling)\t&\\", "Insertar OSF (Flanco de Bajada)\t&\\" },
- { "Insert T&ON (Delayed Turn On)\tO", "Insertar T&ON (Encendido Retardado)\tO" },
- { "Insert TO&F (Delayed Turn Off)\tF", "Insertar TO&F (Apagado Retardado)\tF" },
- { "Insert R&TO (Retentive Delayed Turn On)\tT", "Insertar R&TO (Encendido Retardado con Memoria)\tT" },
- { "Insert CT&U (Count Up)\tU", "Insertar CT&U (Contador Incremental)\tU" },
- { "Insert CT&D (Count Down)\tI", "Insertar CT&D (Contador Decremental)\tI" },
- { "Insert CT&C (Count Circular)\tJ", "Insertar CT&C (Contador Circular)\tJ" },
- { "Insert EQU (Compare for Equals)\t=", "Insertar EQU (Comparador si Igual)\t=" },
- { "Insert NEQ (Compare for Not Equals)", "Insertar NEQ (Comparador si NO Igual)" },
- { "Insert GRT (Compare for Greater Than)\t>", "Insertar GRT (Comparador si Mayor que)\t>" },
- { "Insert GEQ (Compare for Greater Than or Equal)\t.", "Insertar GEQ (Comparador si Mayor o Igual que)\t." },
- { "Insert LES (Compare for Less Than)\t<", "Insertar LES (Comparador si Menor que)\t<" },
- { "Insert LEQ (Compare for Less Than or Equal)\t,", "Insertar LEQ (Comparador si Menor o Igual que)\t," },
- { "Insert Open-Circuit", "Insertar Circuito-Abierto" },
- { "Insert Short-Circuit", "Insertar Circuito-Cerrado" },
- { "Insert Master Control Relay", "Insertar Rele de Control Maestro" },
- { "Insert Coi&l\tL", "Insertar &Bobina\tL" },
- { "Insert R&ES (Counter/RTO Reset)\tE", "Insertar R&ES (Contador/RTO Reinicio)\tE" },
- { "Insert MOV (Move)\tM", "Insertar MOV (Mover)\tM" },
- { "Insert ADD (16-bit Integer Add)\t+", "Insertar ADD (Suma Entero 16-bit)\t+" },
- { "Insert SUB (16-bit Integer Subtract)\t-", "Insertar SUB (Resta Entero 16-bit)\t-" },
- { "Insert MUL (16-bit Integer Multiply)\t*", "Insertar MUL (Multiplica Entero 16-bit)\t*" },
- { "Insert DIV (16-bit Integer Divide)\tD", "Insertar DIV (Divide Entero 16-bit)\tD" },
- { "Insert Shift Register", "Insertar Registro de Desplazamiento" },
- { "Insert Look-Up Table", "Insertar Tabla de Busqueda" },
- { "Insert Piecewise Linear", "Insertar Linealización por Segmentos" },
- { "Insert Formatted String Over UART", "Insertar Cadena Formateada en la UART" },
- { "Insert &UART Send", "Insertar &UART Enviar" },
- { "Insert &UART Receive", "Insertar &UART Recibir" },
- { "Insert Set PWM Output", "Insertar Valor Salida PWM" },
- { "Insert A/D Converter Read\tP", "Insertar Lectura Conversor A/D\tP" },
- { "Insert Make Persistent", "Insertar Hacer Permanente" },
- { "Make Norm&al\tA", "Hacer Norm&al\tA" },
- { "Make &Negated\tN", "Hacer &Negado\tN" },
- { "Make &Set-Only\tS", "Hacer &Solo-Activar\tS" },
- { "Make &Reset-Only\tR", "Hace&r Solo-Desactivar\tR" },
- { "&MCU Parameters...", "&Parametros del Micro..." },
- { "(no microcontroller)", "(no microcontrolador)" },
- { "&Microcontroller", "&Microcontrolador" },
- { "Si&mulation Mode\tCtrl+M", "Modo Si&mulación \tCtrl+M" },
- { "Start &Real-Time Simulation\tCtrl+R", "Empezar Simulación en Tiempo &Real\tCtrl+R" },
- { "&Halt Simulation\tCtrl+H", "Parar Simulación\tCtrl+H" },
- { "Single &Cycle\tSpace", "Solo un &Ciclo\tSpace" },
- { "&Compile\tF5", "&Compilar\tF5" },
- { "Compile &As...", "Compilar &Como..." },
- { "&Manual...\tF1", "&Manual...\tF1" },
- { "&About...", "&Acerca de..." },
- { "&File", "&Archivo" },
- { "&Edit", "&Editar" },
- { "&Settings", "&Configuraciones" },
- { "&Instruction", "&Instrucción" },
- { "Si&mulate", "Si&mular" },
- { "&Compile", "&Compilar" },
- { "&Help", "&Ayuda" },
- { "no MCU selected", "micro no seleccionado" },
- { "cycle time %.2f ms", "tiempo ciclo %.2f ms" },
- { "processor clock %.4f MHz", "reloj procesador %.4f MHz" },
- { "Internal error relating to PIC paging; make program smaller or reshuffle it.", "Error interno relativo a la paginación del PIC; Haz el programa mas pequeño o reorganizalo" },
- { "PWM frequency too fast.", "Frecuencia del PWM demasiado alta." },
- { "PWM frequency too slow.", "Frecuencia del PWM demasiado baja." },
- { "Cycle time too fast; increase cycle time, or use faster crystal.", "Tiempo del Ciclo demasiado rapido; aumenta el tiempo de ciclo, o usa un cristal de mas Mhz." },
- { "Cycle time too slow; decrease cycle time, or use slower crystal.", "Tiempo del Ciclo demasiado lento; incrementa el tiempo de ciclo, o usa un cristal de menos Mhz." },
- { "Couldn't open file '%s'", "No puedo abrir el archivo '%s'" },
- { "Zero baud rate not possible.", "Cero baudios no es posible." },
- { "Compile successful; wrote IHEX for PIC16 to '%s'.\r\n\r\nConfiguration word (fuses) has been set for crystal oscillator, BOD enabled, LVP disabled, PWRT enabled, all code protection off.\r\n\r\nUsed %d/%d words of program flash (chip %d%% full).", "Compilación correcta; escrito IHEX para PIC16 en '%s'.\r\n\r\nBits de Configurarión (fuses) han sido establecidos para oscilador a cristal, BOD activado, LVP desactivado, PWRT activado, Todos los bits de protección desactivados.\r\n\r\nUsadas %d/%d palabras de programa en flash (Chip %d%% lleno)." },
- { "Type", "Tipo" },
- { "Timer", "Temporizador" },
- { "Counter", "Contador" },
- { "Reset", "Reiniciar" },
- { "OK", "OK" },
- { "Cancel", "Cancelar" },
- { "Empty textbox; not permitted.", "Texto vacio; no permitido" },
- { "Bad use of quotes: <%s>", "Mal uso de las comillas: <%s>" },
- { "Turn-On Delay", "Activar Retardado" },
- { "Turn-Off Delay", "Desactivar Retardado" },
- { "Retentive Turn-On Delay", "Activar Retardado con Memoria" },
- { "Delay (ms):", "Retardo (ms):" },
- { "Delay too long; maximum is 2**31 us.", "Retardo demasiado largo; maximo 2**31 us." },
- { "Delay cannot be zero or negative.", "El retardo no puede ser cero o negativo." },
- { "Count Up", "Contador Creciente" },
- { "Count Down", "Contador Decreciente" },
- { "Circular Counter", "Contador Circular" },
- { "Max value:", "Valor Max:" },
- { "True if >= :", "Verdad si >= :" },
- { "If Equals", "Si igual" },
- { "If Not Equals", "Si NO igual" },
- { "If Greater Than", "Si mayor que" },
- { "If Greater Than or Equal To", "Si mayor o igual que" },
- { "If Less Than", "Si menor que" },
- { "If Less Than or Equal To", "Si menor o igual que" },
- { "'Closed' if:", "'Cerrado' si:" },
- { "Move", "Mover" },
- { "Read A/D Converter", "Leer Conversor A/D" },
- { "Duty cycle var:", "Var Ancho Ciclo:" },
- { "Frequency (Hz):", "Frecuencia (Hz):" },
- { "Set PWM Duty Cycle", "Poner Ancho de Pulso PWM" },
- { "Source:", "Fuente:" },
- { "Receive from UART", "Recibido en la UART" },
- { "Send to UART", "Enviado a la UART" },
- { "Add", "Sumar" },
- { "Subtract", "Restar" },
- { "Multiply", "Multiplicar" },
- { "Divide", "Dividir" },
- { "Destination:", "Destino:" },
- { "is set := :", "esta puesto := :" },
- { "Name:", "Nombre:" },
- { "Stages:", "Fases:" },
- { "Shift Register", "Registro Desplazamiento" },
- { "Not a reasonable size for a shift register.", "No es un tamaño razonable para el Registro de Desplazamiento." },
- { "String:", "Cadena:" },
- { "Formatted String Over UART", "Cadena Formateada para UART" },
- { "Variable:", "Variable:" },
- { "Make Persistent", "Hacer permanente" },
- { "Too many elements in subcircuit!", "Demasiados elementos en un SubCircuito!" },
- { "Too many rungs!", "Demasiadas Lineas (rungs)!" },
- { "Error", "Error" },
- { "ANSI C target does not support peripherals (UART, PWM, ADC, EEPROM). Skipping that instruction.", "ANSI C de destino no soporta perifericos (UART, PWM, ADC, EEPROM). Evite esa instrucción." },
- { "Compile successful; wrote C source code to '%s'.\r\n\r\nThis is not a complete C program. You have to provide the runtime and all the I/O routines. See the comments in the source code for information about how to do this.", "Compilación correcta: Escrito Código Fuente en C en '%s'.\r\n\r\nNo es un programa completo en C. Tiene que añadirle el procedimiento principal y todas las rutinas de E/S. Vea los comentarios en el código fuente para mas información sobre como hacer esto" },
- { "Cannot delete rung; program must have at least one rung.", "No puedo borrar la Linea (rung); el programa debe tener al menos una Linea (rung)." },
- { "Out of memory; simplify program or choose microcontroller with more memory.", "Fuera de Memoria; Simplifique el programa o elija un micro con mas memoria.." },
- { "Must assign pins for all ADC inputs (name '%s').", "Debe asignar patas para todas las entradas del ADC (nombre '%s')." },
- { "Internal limit exceeded (number of vars)", "Limite interno superado (numero de variables)" },
- { "Internal relay '%s' never assigned; add its coil somewhere.", "No ha asignado el rele interno '%s'; añada la bobina en cualquier parte del programa." },
- { "Must assign pins for all I/O.\r\n\r\n'%s' is not assigned.", "Debe asignar patas a todas las E/S.\r\n\r\n'%s' no esta asignada." },
- { "UART in use; pins %d and %d reserved for that.", "UART en uso; patas %d y %d reservadas para eso." },
- { "PWM in use; pin %d reserved for that.", "PWM en uso; pata %d reservada para eso." },
- { "UART baud rate generator: divisor=%d actual=%.4f for %.2f%% error.\r\n\r\nThis is too large; try a different baud rate (slower probably), or a crystal frequency chosen to be divisible by many common baud rates (e.g. 3.6864 MHz, 14.7456 MHz).\r\n\r\nCode will be generated anyways but serial may be unreliable or completely broken.", "UART generador de baudios: divisor=%d actual=%.4f para %.2f%% error.\r\n\r\nEs demasiado grande; Prueba con otro valor de baudios (probablemente menor), o un cristal cuya frecuencia sea divible por los baudios mas comunes (p.e. 3.6864MHz, 14.7456MHz).\r\n\r\nEl código se genera de todas formas pero las tramas serie sean inestable o no entendible." },
- { "UART baud rate generator: too slow, divisor overflows. Use a slower crystal or a faster baud rate.\r\n\r\nCode will be generated anyways but serial will likely be completely broken.", "UART generador de baudios: demasiado lento, divisor demasiado grande. Use un cristal mas lento o mayor baudios.\r\n\r\nEl código se genera de todas formas pero las tramas serie serán no entendible.." },
- { "Couldn't open '%s'\n", "No puedo abrir '%s'\n" },
- { "Timer period too short (needs faster cycle time).", "Periodo de Tiempo demasiado corto (se necesita un tiempo de ciclo menor)." },
- { "Timer period too long (max 32767 times cycle time); use a slower cycle time.", "Periodo del temporizador demasiado largo (max. 32767 veces el tiempo de ciclo); use un tiempo de ciclo mayor." },
- { "Constant %d out of range: -32768 to 32767 inclusive.", "Constante %d fuera de rango: -32768 a 32767 inclusive." },
- { "Move instruction: '%s' not a valid destination.", "Instrucción Move: '%s' no es valido el destino." },
- { "Math instruction: '%s' not a valid destination.", "Instrucción Math: '%s' no es valido el destino." },
- { "Piecewise linear lookup table with zero elements!", "tabla de linealizacion por segmentos con cero elementos!" },
- { "x values in piecewise linear table must be strictly increasing.", "Los valores X en la tabla de linealización por segmentos deben ser estrictamente incrementales." },
- { "Numerical problem with piecewise linear lookup table. Either make the table entries smaller, or space the points together more closely.\r\n\r\nSee the help file for details.", "Problema numérico con la tabla de linealización por segmentos. Haz la tabla de entradas mas pequeña, o aleja mas los puntos juntos.\r\n\r\nMira la ayuda para mas detalles." },
- { "Multiple escapes (\\0-9) present in format string, not allowed.", "No esta permitido mas de un caracter especial (\\0-9) dentro de la cadena de caractares." },
- { "Bad escape: correct form is \\xAB.", "Caracter Especial Erroneo: la forma correcta es = \\xAB." },
- { "Bad escape '\\%c'", "Caracter Especial Erroneo '\\%c'" },
- { "Variable is interpolated into formatted string, but none is specified.", "Se ha declarado un parametro dentro la cadena de caracteres, pero falta especificar la variable." },
- { "No variable is interpolated into formatted string, but a variable name is specified. Include a string like '\\-3', or leave variable name blank.", "No se ha declarado un parametro dentro de la cadena de caractares pero sin embargo se ha especificado una variable. Añada un cadena como '\\-3', o quite el nombre de la variable." },
- { "Empty row; delete it or add instructions before compiling.", "Fila vacia; borrela o añada instrucciones antes de compilar." },
- { "Couldn't write to '%s'", "No puedo escribir en '%s'." },
- { "Unsupported op (anything ADC, PWM, UART, EEPROM) for interpretable target.", "Op no soportada en el interprete (algun ADC, PWM, UART, EEPROM)." },
- { "Compile successful; wrote interpretable code to '%s'.\r\n\r\nYou probably have to adapt the interpreter to your application. See the documentation.", "Compilación correcta: Código para interprete escrito en '%s'.\r\n\r\nProblablemente tengas que adaptar el interprete a tu aplicación. Mira la documentación." },
- { "Microcontroller '%s' not supported.\r\n\r\nDefaulting to no selected MCU.", "Microcontrolador '%s' no sorportado.\r\n\r\nForzando ninguna CPU." },
- { "File format error; perhaps this program is for a newer version of LDmicro?", "Error en el formato de archivo; quizas este programa es una version mas moderna de LDmicro?." },
- { "Index:", "Indice:" },
- { "Points:", "Puntos:" },
- { "Count:", "Cantidad:" },
- { "Edit table of ASCII values like a string", "Editar tabla de valores ascii como una cadena" },
- { "Look-Up Table", "Buscar en Tabla" },
- { "Piecewise Linear Table", "Tabla de linealización por segmentos" },
- { "LDmicro Error", "LDmicro Error" },
- { "Compile Successful", "Compilación Correcta" },
- { "digital in", "entrada digital" },
- { "digital out", "salida digital" },
- { "int. relay", "rele interno" },
- { "UART tx", "UART tx" },
- { "UART rx", "UART rx" },
- { "PWM out", "salida PWM" },
- { "turn-on delay", "activar retardo" },
- { "turn-off delay", "desactivar retardo" },
- { "retentive timer", "temporizador con memoria" },
- { "counter", "contador" },
- { "general var", "var general" },
- { "adc input", "entrada adc" },
- { "<corrupt!>", "<estropeado!>" },
- { "(not assigned)", "(no asignado)" },
- { "<no UART!>", "<no UART!>" },
- { "<no PWM!>", "<no PWM!>" },
- { "TOF: variable cannot be used elsewhere", "TOF: la variable no puede ser usada en otra parte" },
- { "TON: variable cannot be used elsewhere", "TON: la variable no puede ser usada en otra parte" },
- { "RTO: variable can only be used for RES elsewhere", "RTO: la variable solo puede ser usada como RES en otra parte" },
- { "Variable '%s' not assigned to, e.g. with a MOV statement, an ADD statement, etc.\r\n\r\nThis is probably a programming error; now it will always be zero.", "Variable '%s' no asignada, p.e. con el comando MOV, una instrucción ADD, etc.\r\n\r\nEsto es probablemente un error de programación; valdrá cero." },
- { "Variable for '%s' incorrectly assigned: %s.", "Variable para '%s' incorrectamente asignada: %s." },
- { "Division by zero; halting simulation", "División por cero; Parando simulación" },
- { "!!!too long!!!", "!!Muy grande!!" },
- { "\n\nI/O ASSIGNMENT:\n\n", "\n\nE/S ASIGNACIÓN:\n\n" },
- { " Name | Type | Pin\n", " Nombre | Tipo | Pata\n" },
- { "Serial (UART) will use pins %d and %d.\r\n\r\n", "El Puerto Serie (UART) usará los pines %d y %d.\r\n\r\n" },
-};
-static Lang LangEs = {
- LangEsTable, sizeof(LangEsTable)/sizeof(LangEsTable[0])
-};
-#endif
-#ifdef LDLANG_FR
-static LangTable LangFrTable[] = {
- { "Target frequency %d Hz, closest achievable is %d Hz (warning, >5%% error).", "Fréquence de la cible %d Hz, fonction accomplie à %d Hz (ATTENTION, >5% erreur)." },
- { "Compile successful; wrote IHEX for AVR to '%s'.\r\n\r\nRemember to set the processor configuration (fuses) correctly. This does not happen automatically.", "Compilé avec succès. Ecriture du fichier IHEX pour AVR sous '%s'.\r\n\r\nVous devez configurer manuellement les Bits de configuration (fusibles). Ceci n'est pas accompli automatiquement." },
- { "( ) Normal", "( ) Normal" },
- { "(/) Negated", "(/) Inversée" },
- { "(S) Set-Only", "(S) Activer" },
- { "(R) Reset-Only", "(R) RAZ" },
- { "Pin on MCU", "Broche MCU" },
- { "Coil", "Bobine" },
- { "Comment", "Commentaire" },
- { "Cycle Time (ms):", "Temps de cycle (ms):" },
- { "Crystal Frequency (MHz):", "Fréquence quartz (MHz):" },
- { "UART Baud Rate (bps):", "UART Vitesse (bps):" },
- { "Serial (UART) will use pins %d and %d.\r\n\r\n", "Communication série utilisera broches %d et %d.\r\n\r\n" },
- { "Please select a micro with a UART.\r\n\r\n", "Sélectionnez un processeur avec UART.\r\n\r\n" },
- { "No serial instructions (UART Send/UART Receive) are in use; add one to program before setting baud rate.\r\n\r\n", "Aucune instruction (émission ou réception UART) n'est utilisée; ajouter une instruction avant de fixer les vitesses.\r\n\r\n" },
- { "The cycle time for the 'PLC' runtime generated by LDmicro is user-configurable. Very short cycle times may not be achievable due to processor speed constraints, and very long cycle times may not be achievable due to hardware overflows. Cycle times between 10 ms and 100 ms will usually be practical.\r\n\r\nThe compiler must know what speed crystal you are using with the micro to convert between timing in clock cycles and timing in seconds. A 4 MHz to 20 MHz crystal is typical; check the speed grade of the part you are using to determine the maximum allowable clock speed before choosing a crystal.", "Le temps de cycle de l'API (automate programmable) est configurable par l'utilisateur. Un temps trop court n'est pas utilisable dû à des contraintes de vitesse du processeur. Des temps de cycle trop longs ne sont pas utilisables à cause du dépassement de capacité des registres. Des temps de cycle compris entre 10 ms et 100 ms sont géneralement utilisables.\r\n\r\nLe compilateur doit connaitre la fréquence du quartz utilisé pour définir les temps de cycles d'horloge ainsi que les temporisations, les fréquences de 4 à 20 mhz sont typiques. Déterminer la vitesse désirée avant de choisir le quartz." },
- { "PLC Configuration", "Configuration API" },
- { "Zero cycle time not valid; resetting to 10 ms.", "Temps de cycle non valide ; remis à 10 ms." },
- { "Source", "Source" },
- { "Internal Relay", "Relais interne" },
- { "Input pin", "Entrée" },
- { "Output pin", "Sortie" },
- { "|/| Negated", "|/| Normalement fermé" },
- { "Contacts", "Contacts" },
- { "No ADC or ADC not supported for selected micro.", "Pas de convertisseur A/D ou convertisseur non supporté pour le MCU sélectionné." },
- { "Assign:", "Affectations:" },
- { "No microcontroller has been selected. You must select a microcontroller before you can assign I/O pins.\r\n\r\nSelect a microcontroller under the Settings menu and try again.", "Aucun microcontrolleur sélectionné. Vous devez sélectionner un microcontroleur avant de définir l'utilisation des broches.\r\n\r\nSélectionnez un micro dans le menu et essayez à nouveau." },
- { "I/O Pin Assignment", "Affectation broches E/S" },
- { "Can't specify I/O assignment for ANSI C target; compile and see comments in generated source code.", "Ne pas spécifier les E/S pour code en ANSI C; Compiler et voir les commentaires dans le code source généré." },
- { "Can't specify I/O assignment for interpretable target; see comments in reference implementation of interpreter.", "Ne pas spécifier les E/S pour sortie en code interprété; Voir les commentaires pour l'implémentation de l'interpréteur ." },
- { "Can only assign pin number to input/output pins (Xname or Yname or Aname).", "Vous pouvez uniquement affecter les broches Entrées/Sorties (XName , YName ou AName)." },
- { "No ADC or ADC not supported for this micro.", "Pas de convertisseur A/D ou convertisseur non supporté pour ce micro." },
- { "Rename I/O from default name ('%s') before assigning MCU pin.", "Changer les noms par défauts des E/S ('%s') avant de leur affecter une broche MCU." },
- { "I/O Pin", "Broches E/S" },
- { "(no pin)", "(Aucune broche)" },
- { "<UART needs!>", "<UART nécessaire!>" },
- { "<PWM needs!>", "<PWM nécessaire!>" },
- { "<not an I/O!>", "<Pas une E/S!>" },
- { "Export As Text", "Exporter en texte" },
- { "Couldn't write to '%s'.", "Impossible d'écrire '%s'." },
- { "Compile To", "Compiler sous" },
- { "Must choose a target microcontroller before compiling.", "Choisir un microcontrolleur avant de compiler." },
- { "UART function used but not supported for this micro.", "Des fonctions UART sont utilisées, mais non supportées par ce micro." },
- { "PWM function used but not supported for this micro.", "Fonctions PWM utilisées mais non supportées par ce micro." },
- { "The program has changed since it was last saved.\r\n\r\nDo you want to save the changes?", "Le programme a changé depuis la dernière sauvegarde.\r\n\r\nVoulez-vous sauvegarder les changements?" },
- { "--add comment here--", "--Ajouter les commentaires ICI--" },
- { "Start new program?", "Commencer un nouveau programme?" },
- { "Couldn't open '%s'.", "Impossible d'ouvrir '%s'." },
- { "Name", "Nom" },
- { "State", "Etat" },
- { "Pin on Processor", "Broche du Micro" },
- { "MCU Port", "Port du processeur" },
- { "LDmicro - Simulation (Running)", "LDmicro - Simulation (en cours)" },
- { "LDmicro - Simulation (Stopped)", "LDmicro - Simulation (Arrétée)" },
- { "LDmicro - Program Editor", "LDmicro – Edition du programme " },
- { " - (not yet saved)", " - (fichier non sauvegardé)" },
- { "&New\tCtrl+N", "&Nouveau\tCtrl+N" },
- { "&Open...\tCtrl+O", "&Ouvrir...\tCtrl+O" },
- { "&Save\tCtrl+S", "&Sauvegarder\tCtrl+S" },
- { "Save &As...", "S&auvegarder sous..." },
- { "&Export As Text...\tCtrl+E", "&Exporter en texte...\tCtrl+E" },
- { "E&xit", "Quitter" },
- { "&Undo\tCtrl+Z", "Annuler\tCtrl+Z" },
- { "&Redo\tCtrl+Y", "&Refaire\tCtrl+Y" },
- { "Insert Rung &Before\tShift+6", "Insérer ligne avant\tShift+6" },
- { "Insert Rung &After\tShift+V", "Insérer ligne &après\tShift+V" },
- { "Move Selected Rung &Up\tShift+Up", "Déplacer la ligne sélectionnée au dessus\tShift+Up" },
- { "Move Selected Rung &Down\tShift+Down", "Déplacer la ligne sélectionnée au dessous\tShift+Down" },
- { "&Delete Selected Element\tDel", "&Effacer l'élement sélectionné\tSuppr" },
- { "D&elete Rung\tShift+Del", "Supprimer la ligne\tShift+Suppr" },
- { "Insert Co&mment\t;", "Insérer commentaire\t;" },
- { "Insert &Contacts\tC", "Insérer &contact\tC" },
- { "Insert OSR (One Shot Rising)\t&/", "Insérer OSR (Front montant)\t&/" },
- { "Insert OSF (One Shot Falling)\t&\\", "Insérer OSF (Front descendant)\t&\\" },
- { "Insert T&ON (Delayed Turn On)\tO", "Insérer T&ON (Tempo travail)\tO" },
- { "Insert TO&F (Delayed Turn Off)\tF", "Insérer TO&F (Tempo repos)\tF" },
- { "Insert R&TO (Retentive Delayed Turn On)\tT", "Insérer R&TO (Tempo totalisatrice)\tT" },
- { "Insert CT&U (Count Up)\tU", "Insérer CT&U (Compteur)\tU" },
- { "Insert CT&D (Count Down)\tI", "Insérer CT&D (Décompteur)\tI" },
- { "Insert CT&C (Count Circular)\tJ", "Insérer CT&C (Compteur cyclique)\tJ" },
- { "Insert EQU (Compare for Equals)\t=", "Insérer EQU (Compare pour égalité)\t=" },
- { "Insert NEQ (Compare for Not Equals)", "Insérer NEQ (Compare pour inégalité)" },
- { "Insert GRT (Compare for Greater Than)\t>", "Insérer GRT (Compare plus grand que)\t>" },
- { "Insert GEQ (Compare for Greater Than or Equal)\t.", "Insérer GEQ (Compare plus grand ou égal à)\t." },
- { "Insert LES (Compare for Less Than)\t<", "Insérer LES (Compare plus petit que)\t<" },
- { "Insert LEQ (Compare for Less Than or Equal)\t,", "Insérer LEQ (Compare plus petit ou égal à)\t," },
- { "Insert Open-Circuit", "Insérer circuit ouvert" },
- { "Insert Short-Circuit", "Insérer court circuit" },
- { "Insert Master Control Relay", "Insérer relais de contrôle maitre" },
- { "Insert Coi&l\tL", "Insérer bobine re&lais \tL" },
- { "Insert R&ES (Counter/RTO Reset)\tE", "Insérer R&ES (Remise à zéro RTO/compteur)\tE" },
- { "Insert MOV (Move)\tM", "Insérer MOV (Mouvoir)\tM" },
- { "Insert ADD (16-bit Integer Add)\t+", "Insérer ADD (Addition entier 16-bit)\t+" },
- { "Insert SUB (16-bit Integer Subtract)\t-", "Insérer SUB (Soustraction entier 16-bit)\t-" },
- { "Insert MUL (16-bit Integer Multiply)\t*", "Insérer MUL (Multiplication entier 16-bit)\t*" },
- { "Insert DIV (16-bit Integer Divide)\tD", "Insérer DIV (Division entier 16-bit)\tD" },
- { "Insert Shift Register", "Insérer registre à décalage" },
- { "Insert Look-Up Table", "Insérer tableau indexé" },
- { "Insert Piecewise Linear", "Insérer tableau d'éléments linéaires" },
- { "Insert Formatted String Over UART", "Insérer chaine formattée pour l'UART" },
- { "Insert &UART Send", "Insérer émission &UART" },
- { "Insert &UART Receive", "Insérer réception &UART" },
- { "Insert Set PWM Output", "Insérer fixer sortie PWM" },
- { "Insert A/D Converter Read\tP", "Insérer lecture convertisseur A/D\tP" },
- { "Insert Make Persistent", "Insérer mettre rémanent" },
- { "Make Norm&al\tA", "Mettre norm&al\tA" },
- { "Make &Negated\tN", "I&nverser\tN" },
- { "Make &Set-Only\tS", "Activer uniquement\tS" },
- { "Make &Reset-Only\tR", "Faire RAZ uniquement\tR" },
- { "&MCU Parameters...", "&Paramètres MCU..." },
- { "(no microcontroller)", "(pas de microcontrolleur)" },
- { "&Microcontroller", "&Microcontrolleur" },
- { "Si&mulation Mode\tCtrl+M", "Mode si&mulation\tCtrl+M" },
- { "Start &Real-Time Simulation\tCtrl+R", "Commencer la simulation en temps &réel\tCtrl+R" },
- { "&Halt Simulation\tCtrl+H", "&Arrêter la simulation\tCtrl+H" },
- { "Single &Cycle\tSpace", "&Cycle unique\tEspace" },
- { "&Compile\tF5", "&Compiler\tF5" },
- { "Compile &As...", "Compiler sous..." },
- { "&Manual...\tF1", "&Manuel...\tF1" },
- { "&About...", "&A propos..." },
- { "&File", "&Fichier" },
- { "&Edit", "&Edition" },
- { "&Settings", "&Paramètres" },
- { "&Instruction", "&Instruction" },
- { "Si&mulate", "Si&mulation" },
- { "&Compile", "&Compilation" },
- { "&Help", "&Aide" },
- { "no MCU selected", "pas de MCU sélectionné" },
- { "cycle time %.2f ms", "cycle %.2f ms" },
- { "processor clock %.4f MHz", "horloge processeur %.4f MHz" },
- { "Internal error relating to PIC paging; make program smaller or reshuffle it.", "Erreur interne dans l'utilisation des pages du PIC; Diminuer le programme ou le remanier" },
- { "PWM frequency too fast.", "Fréquence PWM trop rapide." },
- { "PWM frequency too slow.", "Frequence PWM trop lente." },
- { "Cycle time too fast; increase cycle time, or use faster crystal.", "Temps cycle trop court; augmenter le temps de cycle ou utiliser un quartz plus rapide." },
- { "Cycle time too slow; decrease cycle time, or use slower crystal.", "Temps de cycle trop long ; Diminuer le temps de cycle ou la fréquence du quartz ." },
- { "Couldn't open file '%s'", "Impossible d'ouvrir le fichier '%s'" },
- { "Zero baud rate not possible.", "Vitesse transmission = 0 : impossible" },
- { "Compile successful; wrote IHEX for PIC16 to '%s'.\r\n\r\nConfiguration word (fuses) has been set for crystal oscillator, BOD enabled, LVP disabled, PWRT enabled, all code protection off.\r\n\r\nUsed %d/%d words of program flash (chip %d%% full).", "Compilé avec succès; Ecriture IHEX pour PIC16 sous '%s'.\r\n\r\nLes bits de configuration (fuse) : Oscillateur quartz, BOD activé, LVP déactivé, PWRT activé, sans code de protection.\r\n\r\nUtilise %d/%d mots du programme flash (Chip %d%% au total)." },
- { "Type", "Type" },
- { "Timer", "Temporisation" },
- { "Counter", "Compteur" },
- { "Reset", "RAZ" },
- { "OK", "OK" },
- { "Cancel", "Annuler" },
- { "Empty textbox; not permitted.", "Zone de texte vide; interdite" },
- { "Bad use of quotes: <%s>", "Utilisation incorrecte des guillemets: <%s>" },
- { "Turn-On Delay", "Tempo travail" },
- { "Turn-Off Delay", "Tempo repos" },
- { "Retentive Turn-On Delay", "Temporisation totalisatrice" },
- { "Delay (ms):", "Temps (ms):" },
- { "Delay too long; maximum is 2**31 us.", "Temps trop long; maximum 2**31 us." },
- { "Delay cannot be zero or negative.", "Tempo ne peut être à ZERO ou NEGATIF." },
- { "Count Up", "Compteur" },
- { "Count Down", "Décompteur" },
- { "Circular Counter", "Compteur cyclique" },
- { "Max value:", "Valeur max.:" },
- { "True if >= :", "Vrai si >= :" },
- { "If Equals", "Si EGAL" },
- { "If Not Equals", "Si non EGAL à" },
- { "If Greater Than", "Si plus grand que" },
- { "If Greater Than or Equal To", "Si plus grand ou égal à" },
- { "If Less Than", "Si plus petit que" },
- { "If Less Than or Equal To", "Si plus petit ou égal à" },
- { "'Closed' if:", "'Fermé' si:" },
- { "Move", "Mouvoir" },
- { "Read A/D Converter", "Lecture du convertisseur A/D" },
- { "Duty cycle var:", "Utilisation:" },
- { "Frequency (Hz):", "Frequence (Hz):" },
- { "Set PWM Duty Cycle", "Fixer le rapport de cycle PWM" },
- { "Source:", "Source:" },
- { "Receive from UART", "Reception depuis l'UART" },
- { "Send to UART", "Envoyer vers l'UART" },
- { "Add", "Addition" },
- { "Subtract", "Soustraction" },
- { "Multiply", "Multiplication" },
- { "Divide", "Division" },
- { "Destination:", "Destination:" },
- { "is set := :", "Valeur := :" },
- { "Name:", "Nom:" },
- { "Stages:", "Etapes:" },
- { "Shift Register", "Registre à décalage" },
- { "Not a reasonable size for a shift register.", "N'est pas une bonne taille pour un registre à décalage." },
- { "String:", "Chaine:" },
- { "Formatted String Over UART", "Chaine formatée pour l'UART" },
- { "Variable:", "Variable:" },
- { "Make Persistent", "Mettre rémanent" },
- { "Too many elements in subcircuit!", "Trop d'éléments dans le circuit secondaire !" },
- { "Too many rungs!", "Trop de séquences!" },
- { "Error", "Erreur" },
- { "ANSI C target does not support peripherals (UART, PWM, ADC, EEPROM). Skipping that instruction.", "La sortie en code ANSI C ne supporte pas les périphériques (UART, ADC, EEPROM). Ne pas utiliser ces instructions." },
- { "Compile successful; wrote C source code to '%s'.\r\n\r\nThis is not a complete C program. You have to provide the runtime and all the I/O routines. See the comments in the source code for information about how to do this.", "Compilé avec succès; Le code source C enregistré sous '%s'.\r\n\r\nCe programme n'est pas complet. Vous devez prévoir le runtime ainsi que toutes les routines d'entrées/sorties. Voir les commentaires pour connaitre la façon de procéder." },
- { "Cannot delete rung; program must have at least one rung.", "Impossible de supprimer la ligne, le programme doit avoir au moins une ligne." },
- { "Out of memory; simplify program or choose microcontroller with more memory.", "Mémoire insuffisante; simplifiez le programme ou utiliser un controleur avec plus de mémoire." },
- { "Must assign pins for all ADC inputs (name '%s').", "Vous devez spécifier une broche pour toutes les entrées ADC (nom '%s')." },
- { "Internal limit exceeded (number of vars)", "Vous dépassez la limite interne du nombre de variables" },
- { "Internal relay '%s' never assigned; add its coil somewhere.", "Relais internes '%s', jamais utilisés, à utiliser pour la commande de bobines dans le programme." },
- { "Must assign pins for all I/O.\r\n\r\n'%s' is not assigned.", "Vous devez spécifier les broches pour toutes les E/S.\r\n\r\n'%s' ." },
- { "UART in use; pins %d and %d reserved for that.", "UART utilisé; broches %d et %d réservée pour cette fonction." },
- { "PWM in use; pin %d reserved for that.", "PWM utilisé; broche %d réservée pour cela." },
- { "UART baud rate generator: divisor=%d actual=%.4f for %.2f%% error.\r\n\r\nThis is too large; try a different baud rate (slower probably), or a crystal frequency chosen to be divisible by many common baud rates (e.g. 3.6864 MHz, 14.7456 MHz).\r\n\r\nCode will be generated anyways but serial may be unreliable or completely broken.", "UART Générateur vitesse: Diviseur=%d actuel=%.4f pour %.2f%% Erreur.\r\n\r\nCeci est trop important; Essayez une autre vitesse (probablement plus lente), ou choisir un quartz divisible par plus de vitesses de transmission (comme 3.6864MHz, 14.7456MHz).\r\n\r\nCode est tout de même généré, mais la liaison peut être inutilisable ou la transmission erronée." },
- { "UART baud rate generator: too slow, divisor overflows. Use a slower crystal or a faster baud rate.\r\n\r\nCode will be generated anyways but serial will likely be completely broken.", "Générateur vitesse UART trop lent, dépassement de capacité du diviseur. Utiliser un quartz plus lent ou une vitesse plus élevée.\r\n\r\nCode est généré mais la liaison semble inutilisable." },
- { "Couldn't open '%s'\n", "Impossible d'ouvrir '%s'\n" },
- { "Timer period too short (needs faster cycle time).", "Période temporisation trop courte (Diminuer le temps de cycle)." },
- { "Timer period too long (max 32767 times cycle time); use a slower cycle time.", "Période de tempo trop longue (max. 32767 fois le temps de cycle); utiliser un temps de cycle plus long." },
- { "Constant %d out of range: -32768 to 32767 inclusive.", "Constante %d hors limites: -32768 à 32767 inclus." },
- { "Move instruction: '%s' not a valid destination.", "Instruction 'Mouvoir': '%s' n'est pas une destination valide." },
- { "Math instruction: '%s' not a valid destination.", "Instruction Math: '%s' n'est pas une destination valide." },
- { "Piecewise linear lookup table with zero elements!", "Le tableau indexé linéaire ne comporte aucun élément!" },
- { "x values in piecewise linear table must be strictly increasing.", "Les valeurs x du tableau indexé linéaire doivent être obligatoirement dans un ordre croissant." },
- { "Numerical problem with piecewise linear lookup table. Either make the table entries smaller, or space the points together more closely.\r\n\r\nSee the help file for details.", "Problème numérique avec le tableau. Commencer par les faibles valeurs ou rapprocher les points du tableau .\r\n\r\nVoir fichier d'aide pour plus de détails." },
- { "Multiple escapes (\\0-9) present in format string, not allowed.", "Multiples ESC (\\0-9)présents dans un format chaines non permit." },
- { "Bad escape: correct form is \\xAB.", "ESC incorrect: Forme correcte = \\xAB." },
- { "Bad escape '\\%c'", "ESC incorrect '\\%c'" },
- { "Variable is interpolated into formatted string, but none is specified.", "Une variable est appellée dans une chaine formattée, mais n'est pas spécifiée." },
- { "No variable is interpolated into formatted string, but a variable name is specified. Include a string like '\\-3', or leave variable name blank.", "Aucune variable n'est appelée dans une chaine formattée, mais un nom de variable est spécifié . Insérer une chaine comme: '\\-3', ou laisser le nom de variable vide." },
- { "Empty row; delete it or add instructions before compiling.", "Ligne vide; la supprimer ou ajouter instructions avant compilation." },
- { "Couldn't write to '%s'", "Impossible d'écrire sous '%s'." },
- { "Unsupported op (anything ADC, PWM, UART, EEPROM) for interpretable target.", "Instructions non supportées (comme ADC, PWM, UART, EEPROM ) pour sortie en code interprété." },
- { "Compile successful; wrote interpretable code to '%s'.\r\n\r\nYou probably have to adapt the interpreter to your application. See the documentation.", "Compilé avec succès; Code interprété écrit sous '%s'.\r\n\r\nQue vous devez adapter probablement pour votre application. Voir documentation." },
- { "Microcontroller '%s' not supported.\r\n\r\nDefaulting to no selected MCU.", "Microcontrolleur '%s' non supporté.\r\n\r\nErreur pas de MCU sélectionné." },
- { "File format error; perhaps this program is for a newer version of LDmicro?", "Erreur format du fichier; ce programme est pour une nouvelle version de LDmicro." },
- { "Index:", "Index:" },
- { "Points:", "Points:" },
- { "Count:", "Compteur:" },
- { "Edit table of ASCII values like a string", "Editer tableau de valeur ASCII comme chaine" },
- { "Look-Up Table", "Tableau indexé" },
- { "Piecewise Linear Table", "Tableau d'éléments linéaire" },
- { "LDmicro Error", "Erreur LDmicro" },
- { "Compile Successful", "Compilé avec succès" },
- { "digital in", "Entrée digitale" },
- { "digital out", "Sortie digitale" },
- { "int. relay", "Relais interne" },
- { "UART tx", "UART tx" },
- { "UART rx", "UART rx" },
- { "PWM out", "Sortie PWM" },
- { "turn-on delay", "Tempo travail" },
- { "turn-off delay", "Tempo repos" },
- { "retentive timer", "Tempo totalisatrice" },
- { "counter", "Compteur" },
- { "general var", "Var. générale" },
- { "adc input", "Entrée ADC" },
- { "<corrupt!>", "<Corrompu!>" },
- { "(not assigned)", "(Non affecté)" },
- { "<no UART!>", "<Pas UART!>" },
- { "<no PWM!>", "<Pas de PWM!>" },
- { "TOF: variable cannot be used elsewhere", "TOF: Variable ne peut être utilisée nullepart ailleurs" },
- { "TON: variable cannot be used elsewhere", "TON: Variable ne peut être utilisée nullepart ailleurs" },
- { "RTO: variable can only be used for RES elsewhere", "RTO: Variable ne peut être uniquement utilisée que pour RAZ" },
- { "Variable '%s' not assigned to, e.g. with a MOV statement, an ADD statement, etc.\r\n\r\nThis is probably a programming error; now it will always be zero.", "Variable '%s' non affectée, ex: avec une commande MOV, une instruction ADD-etc.\r\n\r\nCeci est probablement une erreur de programmation; elle reste toujours à zéro." },
- { "Variable for '%s' incorrectly assigned: %s.", "Variable pour '%s' Affectation incorrecte: %s." },
- { "Division by zero; halting simulation", "Division par zéro; Simulation arrétée" },
- { "!!!too long!!!", "!!!trop long!!" },
- { "\n\nI/O ASSIGNMENT:\n\n", "\n\nE/S AFFECTATIONS:\n\n" },
- { " Name | Type | Pin\n", " Nom | Type | Broche\n" },
-};
-static Lang LangFr = {
- LangFrTable, sizeof(LangFrTable)/sizeof(LangFrTable[0])
-};
-#endif
-#ifdef LDLANG_IT
-static LangTable LangItTable[] = {
- { "Target frequency %d Hz, closest achievable is %d Hz (warning, >5%% error).", "Target frequenza %d Hz, il più vicino realizzabile è %d Hz (avvertimento, >5%% di errore)." },
- { "Compile successful; wrote IHEX for AVR to '%s'.\r\n\r\nRemember to set the processor configuration (fuses) correctly. This does not happen automatically.", "Compilazione ok; scritto IHEX per AVR a '%s'.\r\n\r\nRicorda di impostare il processore (Configurazione fusibili) correttamente. Questo non avviene automaticamente." },
- { "( ) Normal", "( ) Aperto" },
- { "(/) Negated", "(/) Negato" },
- { "(S) Set-Only", "(S) Setta" },
- { "(R) Reset-Only", "(R) Resetta" },
- { "Pin on MCU", "Pin MCU" },
- { "Coil", "Bobina" },
- { "Comment", "Commento" },
- { "Cycle Time (ms):", "Tempo di ciclo (ms):" },
- { "Crystal Frequency (MHz):", "Frequenza quarzo (MHz):" },
- { "UART Baud Rate (bps):", "UART Baud Rate (bps):" },
- { "Serial (UART) will use pins %d and %d.\r\n\r\n", "Comunicazione seriale pin utilizzati %d et %d.\r\n\r\n" },
- { "Please select a micro with a UART.\r\n\r\n", "Selezionare un processore dotato di UART.\r\n\r\n" },
- { "No serial instructions (UART Send/UART Receive) are in use; add one to program before setting baud rate.\r\n\r\n", "Nessuna istruzione (UART trasmetti o UART ricevi) è utilizzata; aggiungere un istruzione prima di settare il baud rate.\r\n\r\n" },
- { "The cycle time for the 'PLC' runtime generated by LDmicro is user-configurable. Very short cycle times may not be achievable due to processor speed constraints, and very long cycle times may not be achievable due to hardware overflows. Cycle times between 10 ms and 100 ms will usually be practical.\r\n\r\nThe compiler must know what speed crystal you are using with the micro to convert between timing in clock cycles and timing in seconds. A 4 MHz to 20 MHz crystal is typical; check the speed grade of the part you are using to determine the maximum allowable clock speed before choosing a crystal.", "Il tempo di ciclo per il 'PLC' LDmicro è configurabile dall' utente. Tempi di ciclo molto brevi possono non essere realizzabili a causa di vincoli di velocità del processore, e tempi di ciclo molto lunghi possono essere causa di overflow. Tempi di ciclo tra i 10 ms e di 100 ms di solito sono usuali.\r\n\r\nIl compilatore deve sapere che velocità di cristallo stai usando con il micro per convertire in cicli di clock i Tempi. Da 4 MHz a 20 MHz, è il cristallo tipico; determinare la velocità massima consentita prima di scegliere un cristallo." },
- { "PLC Configuration", "Configurazione PLC" },
- { "Zero cycle time not valid; resetting to 10 ms.", "Tempo di ciclo non valido; reimpostare a 10 ms." },
- { "Source", "Sorgente" },
- { "Internal Relay", "Relè interno" },
- { "Input pin", "Input pin" },
- { "Output pin", "Output pin" },
- { "|/| Negated", "|/| Normalmente chiuso" },
- { "Contacts", "Contatto" },
- { "No ADC or ADC not supported for selected micro.", "Questo micro non suppota l'ADC." },
- { "Assign:", "Assegna:" },
- { "No microcontroller has been selected. You must select a microcontroller before you can assign I/O pins.\r\n\r\nSelect a microcontroller under the Settings menu and try again.", "Microcontrollore non selezionato. Selezionare un microcontrollore prima di assegnare i pin.\r\n\r\nSeleziona un microcontrollore dal il menu Impostazioni e riprova." },
- { "I/O Pin Assignment", "Assegnazione Pin I/O" },
- { "Can't specify I/O assignment for ANSI C target; compile and see comments in generated source code.", "Non specificare l'assegnazione dell' I/O per la generazione di ANSI C; compilare e visualizzare i commenti nel codice sorgente." },
- { "Can't specify I/O assignment for interpretable target; see comments in reference implementation of interpreter.", "Non specificare l'assegnazione dell' I/O per la generazione di codice interpretabile; compilare e visualizzare i commenti nel codice sorgente." },
- { "Can only assign pin number to input/output pins (Xname or Yname or Aname).", "Assegnare unicamente il numero di pin input/output (XNome, YNome ou ANome)." },
- { "No ADC or ADC not supported for this micro.", "Questo micro non contiene ADC." },
- { "Rename I/O from default name ('%s') before assigning MCU pin.", "Rinominare l' I/O per ottenere il nome di defolt ('%s') prima di assegnare i pin del Micro." },
- { "I/O Pin", "I/O Pin" },
- { "(no pin)", "(senza pin)" },
- { "<UART needs!>", "<UART necessario!>" },
- { "<PWM needs!>", "<PWM necessario!>" },
- { "<not an I/O!>", "<nessun I/O!>" },
- { "Export As Text", "Esportare il testo" },
- { "Couldn't write to '%s'.", "Scrittura Impossibile '%s'." },
- { "Compile To", "Per compilare" },
- { "Must choose a target microcontroller before compiling.", "Scegliere un microcontrollore prima di compilare." },
- { "UART function used but not supported for this micro.", "Le funzioni UART sono usate ma non supportate da questo micro." },
- { "PWM function used but not supported for this micro.", "Le funzioni PWM sono usate ma non supportate da questo micro." },
- { "The program has changed since it was last saved.\r\n\r\nDo you want to save the changes?", "Il programma è cambiato da quando è stato salvato l'ultima volta.\r\n\r\nDo si desidera salvare le modifiche? " },
- { "--add comment here--", "--aggiungere il commento--" },
- { "Start new program?", "Iniziare nuovo programma?" },
- { "Couldn't open '%s'.", "Impossibile aprire '%s'." },
- { "Name", "Nome" },
- { "State", "Stato" },
- { "Pin on Processor", "Pin del Micro" },
- { "MCU Port", "Porta del processore" },
- { "LDmicro - Simulation (Running)", "LDmicro - Simulazione (in corso)" },
- { "LDmicro - Simulation (Stopped)", "LDmicro - Simulazione (Ferma)" },
- { "LDmicro - Program Editor", "LDmicro - Scrivere il programma" },
- { " - (not yet saved)", " - (non ancora salvato)" },
- { "&New\tCtrl+N", "&Nuovo\tCtrl+N" },
- { "&Open...\tCtrl+O", "&Aprire...\tCtrl+O" },
- { "&Save\tCtrl+S", "&Salva\tCtrl+S" },
- { "Save &As...", "Salva &con nome..." },
- { "&Export As Text...\tCtrl+E", "&Esportare il testo...\tCtrl+E" },
- { "E&xit", "U&scita" },
- { "&Undo\tCtrl+Z", "&Torna indietro\tCtrl+Z" },
- { "&Redo\tCtrl+Y", "&Rifare\tCtrl+Y" },
- { "Insert Rung &Before\tShift+6", "Inserire Ramo &Davanti\tShift+6" },
- { "Insert Rung &After\tShift+V", "Inserire Ramo &Dietro\tShift+V" },
- { "Move Selected Rung &Up\tShift+Up", "Muove il Ramo selezionato &Su\tShift+Up" },
- { "Move Selected Rung &Down\tShift+Down", "Muove il Ramo selezionato &Giù\tShift+Down" },
- { "&Delete Selected Element\tDel", "&Cancella l'elemento selezionato\tDel" },
- { "D&elete Rung\tShift+Del", "Cancellare il Ramo\tShift+Del" },
- { "Insert Co&mment\t;", "Inserire Co&mmento\t;" },
- { "Insert &Contacts\tC", "Inserire &Contatto\tC" },
- { "Insert OSR (One Shot Rising)\t&/", "Inserire PULSUP (Fronte di salita)\t&/" },
- { "Insert OSF (One Shot Falling)\t&\\", "Inserire PULSDW (Fronte di discesa)\t&\\" },
- { "Insert T&ON (Delayed Turn On)\tO", "Inserire T&ON (Tempo di ritardo On)\tO" },
- { "Insert TO&F (Delayed Turn Off)\tF", "Inserire TO&F (Tempo di ritardo Off)\tF" },
- { "Insert R&TO (Retentive Delayed Turn On)\tT", "Inserire R&TO (Tempo di ritardo ritentivo On)\tT" },
- { "Insert CT&U (Count Up)\tU", "Inserire CT&U (Contatore Up)\tU" },
- { "Insert CT&D (Count Down)\tI", "Inserire CT&D (Contatore Down)\tI" },
- { "Insert CT&C (Count Circular)\tJ", "Inserire CT&C (Contatore ciclico)\tJ" },
- { "Insert EQU (Compare for Equals)\t=", "Inserire EQU (Compara per Uguale)\t=" },
- { "Insert NEQ (Compare for Not Equals)", "Inserire NEQ (Compara per Diverso)" },
- { "Insert GRT (Compare for Greater Than)\t>", "Inserire GRT (Compara per Maggiore)\t>" },
- { "Insert GEQ (Compare for Greater Than or Equal)\t.", "Inserire GEQ (Compara per Maggiore o Uguale)\t." },
- { "Insert LES (Compare for Less Than)\t<", "Inserire LES (Compara per Minore)\t<" },
- { "Insert LEQ (Compare for Less Than or Equal)\t,", "Inserire LEQ (Compara per Minore o Uguale)\t," },
- { "Insert Open-Circuit", "Inserire Circuito Aperto" },
- { "Insert Short-Circuit", "Inserire Corto Circuito" },
- { "Insert Master Control Relay", "Inserire Master Control Relay" },
- { "Insert Coi&l\tL", "Inserire Bobina Re&lè\tL" },
- { "Insert R&ES (Counter/RTO Reset)\tE", "Inserire R&ES (Contatore/RTO Reset)\tE" },
- { "Insert MOV (Move)\tM", "Inserire MOV (Spostare)\tM" },
- { "Insert ADD (16-bit Integer Add)\t+", "Inserire ADD (Addizione intera 16-bit)\t+" },
- { "Insert SUB (16-bit Integer Subtract)\t-", "Inserire SUB (Sottrazione intera 16-bit)\t-" },
- { "Insert MUL (16-bit Integer Multiply)\t*", "Inserire MUL (Moltiplicazione intera 16-bit)\t*" },
- { "Insert DIV (16-bit Integer Divide)\tD", "Inserire DIV (Divisione intera 16-bit)\tD" },
- { "Insert Shift Register", "Inserire Shift Register" },
- { "Insert Look-Up Table", "Inserire Tavola Indicizzata" },
- { "Insert Piecewise Linear", "Inserire Tavola di Elementi Lineari" },
- { "Insert Formatted String Over UART", "Inserire Stringhe Formattate per l'UART" },
- { "Insert &UART Send", "Inserire Trasmissione &UART" },
- { "Insert &UART Receive", "Inserire Ricezione &UART" },
- { "Insert Set PWM Output", "Inserire Valore di Uscita PWM" },
- { "Insert A/D Converter Read\tP", "Inserire Lettura del Convertitore A/D\tP" },
- { "Insert Make Persistent", "Inserire Scrittura Permanente" },
- { "Make Norm&al\tA", "Attivazione Norm&ale\tA" },
- { "Make &Negated\tN", "Attivazione &Negata\tN" },
- { "Make &Set-Only\tS", "Attivazione &Solo-Set\tS" },
- { "Make &Reset-Only\tR", "Attivazione &Solo-Reset\tR" },
- { "&MCU Parameters...", "&Parametri MCU..." },
- { "(no microcontroller)", "(nessun microcontroller)" },
- { "&Microcontroller", "&Microcontroller" },
- { "Si&mulation Mode\tCtrl+M", "Modo Si&mulazione\tCtrl+M" },
- { "Start &Real-Time Simulation\tCtrl+R", "Avviare la &Simulazione in Tempo Reale\tCtrl+R" },
- { "&Halt Simulation\tCtrl+H", "&Arrestare la Simulazione\tCtrl+H" },
- { "Single &Cycle\tSpace", "Singolo &Ciclo\tSpazio" },
- { "&Compile\tF5", "&Compila\tF5" },
- { "Compile &As...", "Compila &Come..." },
- { "&Manual...\tF1", "&Manuale...\tF1" },
- { "&About...", "&About..." },
- { "&File", "&File" },
- { "&Edit", "&Editazione" },
- { "&Settings", "&Settaggi" },
- { "&Instruction", "&Istruzione" },
- { "Si&mulate", "Si&mulazione" },
- { "&Compile", "&Compilazione" },
- { "&Help", "&Aiuto" },
- { "no MCU selected", "nessuna MCU selezionata" },
- { "cycle time %.2f ms", "tempo ciclo %.2f ms" },
- { "processor clock %.4f MHz", "clock processore %.4f MHz" },
- { "Internal error relating to PIC paging; make program smaller or reshuffle it.", "Errore interno relativo allla paginazione PIC; rendere il programma più piccolo." },
- { "PWM frequency too fast.", "Frequenza PWM troppo alta." },
- { "PWM frequency too slow.", "Frequenza PWM tropppo lenta." },
- { "Cycle time too fast; increase cycle time, or use faster crystal.", "Tempo di ciclo troppo veloce; aumentare il tempo di ciclo o utilizzare un quarzo più veloce." },
- { "Cycle time too slow; decrease cycle time, or use slower crystal.", "Tempo di ciclo troppo lento; diminuire il tempo di ciclo o utilizzare un quarzo più lento." },
- { "Couldn't open file '%s'", "Impossibile aprire il file '%s'" },
- { "Zero baud rate not possible.", "baud rate = Zero non è possibile" },
- { "Compile successful; wrote IHEX for PIC16 to '%s'.\r\n\r\nConfiguration word (fuses) has been set for crystal oscillator, BOD enabled, LVP disabled, PWRT enabled, all code protection off.\r\n\r\nUsed %d/%d words of program flash (chip %d%% full).", "Compilato con successo; scritto IHEX per PIC16 per '%s'.\r\n\r\nConfigurazione word (fusibili), è stato fissato per il cristallo oscillatore, BOD abilitato, LVP disabilitati, PWRT attivato, tutto il codice di protezione off.\r\n\r\nUsed %d/%d word di Programma flash (chip %d%% full)." },
- { "Type", "Tipo" },
- { "Timer", "Temporizzazione" },
- { "Counter", "Contatore" },
- { "Reset", "Reset" },
- { "OK", "OK" },
- { "Cancel", "Cancellare" },
- { "Empty textbox; not permitted.", "Spazio vuoto per testo; non è consentito" },
- { "Bad use of quotes: <%s>", "Quota utilizzata scorretta: <%s>" },
- { "Turn-On Delay", "Ritardo all' eccitazione" },
- { "Turn-Off Delay", "Ritardo alla diseccitazione" },
- { "Retentive Turn-On Delay", "Ritardo Ritentivo all' eccitazione" },
- { "Delay (ms):", "Ritardo (ms):" },
- { "Delay too long; maximum is 2**31 us.", "Ritardo troppo lungo; massimo 2**31 us." },
- { "Delay cannot be zero or negative.", "Ritardo zero o negativo non possibile." },
- { "Count Up", "Contatore in avanti" },
- { "Count Down", "Contatore in discesa" },
- { "Circular Counter", "Contatore ciclico" },
- { "Max value:", "Valore massimo:" },
- { "True if >= :", "Vero se >= :" },
- { "If Equals", "Se Uguale" },
- { "If Not Equals", "Se non Uguale" },
- { "If Greater Than", "Se più grande di" },
- { "If Greater Than or Equal To", "Se più grande o uguale di" },
- { "If Less Than", "Se più piccolo di" },
- { "If Less Than or Equal To", "Se più piccolo o uguale di" },
- { "'Closed' if:", "Chiuso se:" },
- { "Move", "Spostare" },
- { "Read A/D Converter", "Lettura del convertitore A/D" },
- { "Duty cycle var:", "Duty cycle var:" },
- { "Frequency (Hz):", "Frequenza (Hz):" },
- { "Set PWM Duty Cycle", "Settare PWM Duty Cycle" },
- { "Source:", "Sorgente:" },
- { "Receive from UART", "Ricezione dall' UART" },
- { "Send to UART", "Trasmissione all' UART" },
- { "Add", "Addizione" },
- { "Subtract", "Sottrazione" },
- { "Multiply", "Moltiplicazione" },
- { "Divide", "Divisione" },
- { "Destination:", "Destinazione:" },
- { "is set := :", "é impostato := :" },
- { "Name:", "Nome:" },
- { "Stages:", "Stati:" },
- { "Shift Register", "Registro a scorrimento" },
- { "Not a reasonable size for a shift register.", "Non è una dimensione ragionevole per un registro scorrimento." },
- { "String:", "Stringhe:" },
- { "Formatted String Over UART", "Stringhe formattate per l'UART" },
- { "Variable:", "Variabile:" },
- { "Make Persistent", "Memoria rimanante" },
- { "Too many elements in subcircuit!", "Troppi elementi nel circuito secondario!" },
- { "Too many rungs!", "Troppi rami!" },
- { "Error", "Errore" },
- { "ANSI C target does not support peripherals (UART, PWM, ADC, EEPROM). Skipping that instruction.", "Il codice in uscita ANSI C non supporta queste istruzioni (UART, PWM, ADC, EEPROM). Non usare queste istruzioni." },
- { "Compile successful; wrote C source code to '%s'.\r\n\r\nThis is not a complete C program. You have to provide the runtime and all the I/O routines. See the comments in the source code for information about how to do this.", "Compilato con successo; scritto il codice sorgente in C '%s'.\r\n\r\nIl non è un completo programma in C. Si deve fornire il runtime e tutti gli I / O di routine. Vedere i commenti nel codice sorgente per informazioni su come fare." },
- { "Cannot delete rung; program must have at least one rung.", "Non è in grado di eliminare le linee; il programma deve avere almeno una linea." },
- { "Out of memory; simplify program or choose microcontroller with more memory.", "Memoria insufficiente; semplificare il programma oppure scegliere microcontrollori con più memoria ." },
- { "Must assign pins for all ADC inputs (name '%s').", "Devi assegnare i pin per tutti gli ingressi ADC (nom '%s')." },
- { "Internal limit exceeded (number of vars)", "Superato il limite interno (numero di variabili)" },
- { "Internal relay '%s' never assigned; add its coil somewhere.", "Relè interno '%s' non assegnato; aggiungere la sua bobina." },
- { "Must assign pins for all I/O.\r\n\r\n'%s' is not assigned.", "Devi assegnare tutti i pin di I / O.\r\n\r\n'%s' non è stato assegnato." },
- { "UART in use; pins %d and %d reserved for that.", "UART in uso; pins %d et %d riservati per questa." },
- { "PWM in use; pin %d reserved for that.", "PWM utilizzato; pin %d riservati per questo." },
- { "UART baud rate generator: divisor=%d actual=%.4f for %.2f%% error.\r\n\r\nThis is too large; try a different baud rate (slower probably), or a crystal frequency chosen to be divisible by many common baud rates (e.g. 3.6864 MHz, 14.7456 MHz).\r\n\r\nCode will be generated anyways but serial may be unreliable or completely broken.", "UART generatore di baud rate: divisore = %d effettivo = %.4f per %.2f%% di errore.\r\n\r\nIl è troppo grande; prova un altro baud rate (probabilmente più lento), o il quarzo scelto non è divisibile per molti comuni baud (ad esempio, 3.6864 MHz, 14.7456 MHz).\r\n\r\nIl codice verrà generato, ma comunque può essere inaffidabile o completamente non funzionante." },
- { "UART baud rate generator: too slow, divisor overflows. Use a slower crystal or a faster baud rate.\r\n\r\nCode will be generated anyways but serial will likely be completely broken.", "UART generatore di baud rate: troppo lento, overflow. Utilizzare un quarzo più lento o una velocità più alta di baud.\r\n\r\nIl codice verrà generato, ma comunque sarà probabilmente completamente inutilizzabile." },
- { "Couldn't open '%s'\n", "Impossibile aprire '%s'\n" },
- { "Timer period too short (needs faster cycle time).", "Periodo troppo corto (Diminuire il tempo de ciclo)." },
- { "Timer period too long (max 32767 times cycle time); use a slower cycle time.", "Tempo troppo lungo (max 32767 volte di ciclo); utilizzare un tempo di ciclo più lento." },
- { "Constant %d out of range: -32768 to 32767 inclusive.", "Costante %d oltre il limite: -32768 a 32767 inclusi." },
- { "Move instruction: '%s' not a valid destination.", "Sposta istruzione: '%s' non è una destinazione valida." },
- { "Math instruction: '%s' not a valid destination.", "Math istruzione: '%s' non è una destinazione valida" },
- { "Piecewise linear lookup table with zero elements!", "La tabella lineare di ricerca non contiene elementi!" },
- { "x values in piecewise linear table must be strictly increasing.", "X valori nella tabella lineare devono essere crescenti." },
- { "Numerical problem with piecewise linear lookup table. Either make the table entries smaller, or space the points together more closely.\r\n\r\nSee the help file for details.", "Problema numerico con la tabella lineare di ricerca. Sia la tabella voci più piccole, o insieme di punti più vicini.\r\n\r\nVedere il file di aiuto per ulteriori dettagli." },
- { "Multiple escapes (\\0-9) present in format string, not allowed.", "Uscita multipla (\\0-9) presente nel formato stringa, non consentito." },
- { "Bad escape: correct form is \\xAB.", "Uscita errata: Forma non corretta = \\xAB." },
- { "Bad escape '\\%c'", "Uscita non corretta '\\%c'" },
- { "Variable is interpolated into formatted string, but none is specified.", "Variabile interpolata in formato stringa, ma non è specificata." },
- { "No variable is interpolated into formatted string, but a variable name is specified. Include a string like '\\-3', or leave variable name blank.", "Variabile interpolata non in formato stringa, ma un nome di variabile è stato specificato. Includi una stringa come '\\-3', o lasciare vuoto." },
- { "Empty row; delete it or add instructions before compiling.", "Riga vuota, eliminare o aggiungere istruzioni prima di compilare." },
- { "Couldn't write to '%s'", "Impossibile scrivere qui '%s'." },
- { "Unsupported op (anything ADC, PWM, UART, EEPROM) for interpretable target.", "Istruzioni non supportate (come ADC, PWM, UART, EEPROM ) per il codice interpretato." },
- { "Compile successful; wrote interpretable code to '%s'.\r\n\r\nYou probably have to adapt the interpreter to your application. See the documentation.", "Compilazione riuscita; codice interpretabile scritto per '%s'.\r\n\r\nSi dovrà probabilmente adattare l'interprete per la vostra applicazione. Vedi la documentazione." },
- { "Microcontroller '%s' not supported.\r\n\r\nDefaulting to no selected MCU.", "Microcontrollore '%s' non è supportato.\r\n\r\nNessuna MCU selezionata di default." },
- { "File format error; perhaps this program is for a newer version of LDmicro?", "Errore del formato del file, forse questo è il programma per una nuova versione di LDmicro?" },
- { "Index:", "Indice:" },
- { "Points:", "Punto:" },
- { "Count:", "Contatore:" },
- { "Edit table of ASCII values like a string", "Modifica tabella dei valori ASCII come stringa" },
- { "Look-Up Table", "Tabella indicizzata" },
- { "Piecewise Linear Table", "Tabella di elementi lineari" },
- { "LDmicro Error", "Errore LDmicro" },
- { "Compile Successful", "Compilato con successo" },
- { "digital in", "Input digitale" },
- { "digital out", "Uscita digitale" },
- { "int. relay", "Relè interno" },
- { "UART tx", "UART tx" },
- { "UART rx", "UART rx" },
- { "PWM out", "Uscita PWM" },
- { "turn-on delay", "ritardo all' eccitazione" },
- { "turn-off delay", "ritardo alla diseccitazione" },
- { "retentive timer", "ritardo ritentivo" },
- { "counter", "contatore" },
- { "general var", "Var. generale" },
- { "adc input", "Ingrasso ADC" },
- { "<corrupt!>", "<Corrotto!>" },
- { "(not assigned)", "(non assegnato)" },
- { "<no UART!>", "<nessuna UART!>" },
- { "<no PWM!>", "<nessun PWM!>" },
- { "TOF: variable cannot be used elsewhere", "TOF: la variabile non può essere utilizzata altrove" },
- { "TON: variable cannot be used elsewhere", "TON: la variabile non può essere utilizzata altrove" },
- { "RTO: variable can only be used for RES elsewhere", "RTO: la variabile può essere utilizzata altrove solo per il RES" },
- { "Variable '%s' not assigned to, e.g. with a MOV statement, an ADD statement, etc.\r\n\r\nThis is probably a programming error; now it will always be zero.", "Variabile '%s' non assegnate, ad esempio, con una dichiarazione, MOV, una dichiarazione ADD, ecc\r\n\r\nQuesto è probabilmente un errore di programmazione; ora sarà sempre uguale a zero." },
- { "Variable for '%s' incorrectly assigned: %s.", "Variabile per '%s' assegnazione incorretta: %s." },
- { "Division by zero; halting simulation", "Divisione per zero; Simulazione fermata" },
- { "!!!too long!!!", "!troppo lungo!" },
- { "\n\nI/O ASSIGNMENT:\n\n", "\n\nE/S ASSEGNAZIONE:\n\n" },
- { " Name | Type | Pin\n", " Nome | Type | Pin\n" },
-};
-static Lang LangIt = {
- LangItTable, sizeof(LangItTable)/sizeof(LangItTable[0])
-};
-#endif
-#ifdef LDLANG_PT
-static LangTable LangPtTable[] = {
- { "Target frequency %d Hz, closest achievable is %d Hz (warning, >5%% error).", "Freqüência do Micro %d Hz, a melhor aproximação é %d Hz (aviso, >5%% error)." },
- { "Compile successful; wrote IHEX for AVR to '%s'.\r\n\r\nRemember to set the processor configuration (fuses) correctly. This does not happen automatically.", "Compilação sucedida; se escrito em IHEX para AVR para '%s'.\r\n\r\nLembrar de anotar as configurações (fuses) do micro, corretamente. Isto não acontece automaticamente." },
- { "( ) Normal", "( ) Normal" },
- { "(/) Negated", "(/) Negado" },
- { "(S) Set-Only", "(S) Ativar" },
- { "(R) Reset-Only", "(R) Desativar" },
- { "Pin on MCU", "Pino no Micro" },
- { "Coil", "Bobina" },
- { "Comment", "Comentário" },
- { "Cycle Time (ms):", "Tempo de Ciclo (ms):" },
- { "Crystal Frequency (MHz):", "Freqüência Cristal (MHz):" },
- { "UART Baud Rate (bps):", "Baud Rate UART (bps):" },
- { "Serie (UART) will use pins %d and %d.\r\n\r\n", "Porta Serial (UART) usará os pinos %d e %d.\r\n\r\n" },
- { "Please select a micro with a UART.\r\n\r\n", "Por favor, selecione um micro com UART.\r\n\r\n" },
- { "No serial instructions (UART Send/UART Receive) are in use; add one to program before setting baud rate.\r\n\r\n", "Nenhuma instrução serial (UART Enviar/UART Recebe) está em uso; adicione uma ao programa antes de configurar a taxa de transmissão (baud rate).\r\n\r\n" },
- { "The cycle time for the 'PLC' runtime generated by LDmicro is user-configurable. Very short cycle times may not be achievable due to processor speed constraints, and very long cycle times may not be achievable due to hardware overflows. Cycle times between 10 ms and 100 ms will usually be practical.\r\n\r\nThe compiler must know what speed crystal you are using with the micro to convert between timing in clock cycles and timing in seconds. A 4 MHz to 20 MHz crystal is typical; check the speed grade of the part you are using to determine the maximum allowable clock speed before choosing a crystal.", "O tempo de ciclo para o PLC generalizado pelo LDmicro é configuravel pelo usuário. Tempos de ciclo muito pequenos podem não ser realizáveis devido a baixa velocidade do processador, e tempos de ciclo muito longos podem não ser realizáveis devido ao temporizador do micro. Ciclos de tempo entre 10 e 100ms são mais usuais.\r\n\r\n O compilador tem que saber qual é a freqüência do cristal que está sendo usado para poder converter entre o tempo em ciclos do clock e tempo em segundos. Cristais entre 4 Mhz e 20 Mhz são os mais típicos. Confira a velocidade que pode funcionar seu micro e calcule a velocidade máxima do clock antes de encolher o cristal." },
- { "PLC Configuration", "Configuração PLC" },
- { "Zero cycle time not valid; resetting to 10 ms.", "Não é válido um tempo de ciclo 0; retornando a 10 ms." },
- { "Source", "Fonte" },
- { "Internal Relay", "Rele Interno" },
- { "Input pin", "Pino Entrada" },
- { "Output pin", "Pino Saida" },
- { "|/| Negated", "|/| Negado" },
- { "Contacts", "Contatos" },
- { "No ADC or ADC not supported for selected micro.", "O micro selecionado não possui ADC ou não suporta." },
- { "Assign:", "Atribua:" },
- { "No microcontroller has been selected. You must select a microcontroller before you can assign I/O pins.\r\n\r\nSelect a microcontroller under the Settings menu and try again.", "Nenhum micro esta selecionado. Você deve selecionar um micro antes de atribuir os pinos E/S.\r\n\r\nSelecione um micro no menu de configuração e tente novamente." },
- { "I/O Pin Assignment", "Atribuição de Pinos de E/S" },
- { "Can't specify I/O assignment for ANSI C target; compile and see comments in generated source code.", "Não se pode atribuir as E/S especificadas para o ANSI C gerado; compile e veja os comentários gerados no código fonte." },
- { "Can't specify I/O assignment for interpretable target; see comments in reference implementation of interpreter.", "Não se pode atribuir as E/S especificadas para o código gerado para o interpretador; veja os comentários na implementação do interpretador." },
- { "Can only assign pin number to input/output pins (Xname or Yname or Aname).", "Somente pode atribuir números dos pinos aos pinos de Entrada/Saída (Xname ou Yname ou Aname)." },
- { "No ADC or ADC not supported for this micro.", "Este micro não tem ADC ou não é suportado." },
- { "Rename I/O from default name ('%s') before assigning MCU pin.", "Renomear as E/S para nome padrão ('%s') antes de atribuir um pino do micro." },
- { "I/O Pin", "Pino E/S" },
- { "(no pin)", "(sem pino)" },
- { "<UART needs!>", "<Se necessitar UART!>" },
- { "<PWM needs!>", "<Se necessitar PWM!>" },
- { "<not an I/O!>", "<Não é uma E/S!>" },
- { "Export As Text", "Exportar como Texto" },
- { "Couldn't write to '%s'.", "Não pode gravar para '%s'." },
- { "Compile To", "Compilar Para" },
- { "Must choose a target microcontroller before compiling.", "Deve selecionar um microcontrolador antes de compilar." },
- { "UART function used but not supported for this micro.", "Função UART é usada porem não suportada por este micro." },
- { "PWM function used but not supported for this micro.", "Função PWM é usada porem não suportada por este micro." },
- { "The program has changed since it was last saved.\r\n\r\nDo you want to save the changes?", "Este programa contem mudanças desde a ultima vez salva.\r\n\r\n Você quer salvar as mudanças?" },
- { "--add comment here--", "--Adicione Comentários Aqui--" },
- { "Start new program?", "Iniciar um novo programa?" },
- { "Couldn't open '%s'.", "Não pode abrir '%s'." },
- { "Name", "Nome" },
- { "State", "Estado" },
- { "Pin on Processor", "Pino do Processador" },
- { "MCU Port", "Porta do Micro" },
- { "LDmicro - Simulation (Running)", "LDmicro - Simulação (Executando)" },
- { "LDmicro - Simulation (Stopped)", "LDmicro - Simulação (Parado)" },
- { "LDmicro - Program Editor", "LDmicro - Editor de Programa" },
- { " - (not yet saved)", " - (ainda não salvo)" },
- { "&New\tCtrl+N", "&Novo\tCtrl+N" },
- { "&Open...\tCtrl+O", "&Abrir...\tCtrl+O" },
- { "&Save\tCtrl+S", "&Salvar\tCtrl+S" },
- { "Save &As...", "Salvar &Como..." },
- { "&Export As Text...\tCtrl+E", "&Exportar como Texto...\tCtrl+E" },
- { "E&xit", "&Sair" },
- { "&Undo\tCtrl+Z", "&Desfazer\tCtrl+Z" },
- { "&Redo\tCtrl+Y", "&Refazer\tCtrl+Y" },
- { "Insert Rung &Before\tShift+6", "Inserir Linha (Rung) &Antes\tShift+6" },
- { "Insert Rung &After\tShift+V", "Inserir Linha (Rung) &Depois\tShift+V" },
- { "Move Selected Rung &Up\tShift+Up", "Mover Linha Selecionada (Rung) &Acima\tShift+Up" },
- { "Move Selected Rung &Down\tShift+Down", "Mover Linha Selecionada(Rung) &Abaixo\tShift+Down" },
- { "&Delete Selected Element\tDel", "&Apagar Elemento Selecionado\tDel" },
- { "D&elete Rung\tShift+Del", "A&pagar Linha (Rung) \tShift+Del" },
- { "Insert Co&mment\t;", "Inserir Co&mentário\t;" },
- { "Insert &Contacts\tC", "Inserir &Contatos\tC" },
- { "Insert OSR (One Shot Rising)\t&/", "Inserir OSR (Detecta Borda de Subida)\t&/" },
- { "Insert OSF (One Shot Falling)\t&\\", "Inserir OSF (Detecta Borda de Descida)\t&\\" },
- { "Insert T&ON (Delayed Turn On)\tO", "Inserir T&ON (Temporizador para Ligar)\tO" },
- { "Insert TO&F (Delayed Turn Off)\tF", "Inserir TO&F (Temporizador para Desligar)\tF" },
- { "Insert R&TO (Retentive Delayed Turn On)\tT", "Inserir R&TO (Temporizar Retentivo para Ligar)\tT" },
- { "Insert CT&U (Count Up)\tU", "Inserir CT&U (Contador Incremental)\tU" },
- { "Insert CT&D (Count Down)\tI", "Inserir CT&D (Contador Decremental)\tI" },
- { "Insert CT&C (Count Circular)\tJ", "Inserir CT&C (Contador Circular)\tJ" },
- { "Insert EQU (Compare for Equals)\t=", "Inserir EQU (Comparar se é Igual)\t=" },
- { "Insert NEQ (Compare for Not Equals)", "Inserir NEQ (Comparar se é Diferente)" },
- { "Insert GRT (Compare for Greater Than)\t>", "Inserir GRT (Comparar se Maior Que)\t>" },
- { "Insert GEQ (Compare for Greater Than or Equal)\t.", "Inserir GEQ (Comparar se Maior ou Igual Que)\t." },
- { "Insert LES (Compare for Less Than)\t<", "Inserir LES (Comparar se Menor Que)\t<" },
- { "Insert LEQ (Compare for Less Than or Equal)\t,", "Inserir LEQ (Comparar se Menor ou Igual Que)\t," },
- { "Insert Open-Circuit", "Inserir Circuito Aberto" },
- { "Insert Short-Circuit", "Inserir Curto Circuito" },
- { "Insert Master Control Relay", "Inserir Rele de Controle Mestre" },
- { "Insert Coi&l\tL", "Inserir &Bobina\tL" },
- { "Insert R&ES (Counter/RTO Reset)\tE", "Inserir R&ES (Contador/RTO Reinicia)\tE" },
- { "Insert MOV (Move)\tM", "Inserir MOV (Mover)\tM" },
- { "Insert ADD (16-bit Integer Add)\t+", "Inserir ADD (Soma Inteiro 16-bit)\t+" },
- { "Insert SUB (16-bit Integer Subtract)\t-", "Inserir SUB (Subtrair Inteiro 16-bit)\t-" },
- { "Insert MUL (16-bit Integer Multiply)\t*", "Inserir MUL (Multiplica Inteiro 16-bit)\t*" },
- { "Insert DIV (16-bit Integer Divide)\tD", "Inserir DIV (Divide Inteiro 16-bit)\tD" },
- { "Insert Shift Register", "Inserir Registro de Troca" },
- { "Insert Look-Up Table", "Inserir Tabela de Busca" },
- { "Insert Piecewise Linear", "Inserir Linearização por Segmentos" },
- { "Insert Formatted String Over UART", "Inserir String Formatada na UART" },
- { "Insert &UART Send", "Inserir &UART Enviar" },
- { "Insert &UART Receive", "Inserir &UART Receber" },
- { "Insert Set PWM Output", "Inserir Valor de Saída PWM" },
- { "Insert A/D Converter Read\tP", "Inserir Leitura do Conversor A/D\tP" },
- { "Insert Make Persistent", "Inserir Fazer Permanente" },
- { "Make Norm&al\tA", "Fazer Norm&al\tA" },
- { "Make &Negated\tN", "Fazer &Negado\tN" },
- { "Make &Set-Only\tS", "Fazer &Ativar-Somente\tS" },
- { "Make &Reset-Only\tR", "Fazer&Desativar-Somente\tR" },
- { "&MCU Parameters...", "&Parâmetros do Micro..." },
- { "(no microcontroller)", "(sem microcontrolador)" },
- { "&Microcontroller", "&Microcontrolador" },
- { "Si&mulation Mode\tCtrl+M", "Modo Si&mulação \tCtrl+M" },
- { "Start &Real-Time Simulation\tCtrl+R", "Iniciar Simulação em Tempo &Real\tCtrl+R" },
- { "&Halt Simulation\tCtrl+H", "Parar Simulação\tCtrl+H" },
- { "Single &Cycle\tSpace", "Simples &Ciclo\tEspaço" },
- { "&Compile\tF5", "&Compilar\tF5" },
- { "Compile &As...", "Compilar &Como..." },
- { "&Manual...\tF1", "&Manual...\tF1" },
- { "&About...", "&Sobre..." },
- { "&File", "&Arquivo" },
- { "&Edit", "&Editar" },
- { "&Settings", "&Configurações" },
- { "&Instruction", "&Instruções" },
- { "Si&mulate", "Si&mular" },
- { "&Compile", "&Compilar" },
- { "&Help", "&Ajuda" },
- { "no MCU selected", "Micro não selecionado" },
- { "cycle time %.2f ms", "tempo de ciclo %.2f ms" },
- { "processor clock %.4f MHz", "clock do processador %.4f MHz" },
- { "Internal error relating to PIC paging; make program smaller or reshuffle it.", "Erro interno relativo a paginação do PIC; fazer um programa menor ou reorganiza-lo" },
- { "PWM frequency too fast.", "Freqüência do PWM muito alta." },
- { "PWM frequency too slow.", "Freqüência do PWM muito baixa." },
- { "Cycle time too fast; increase cycle time, or use faster crystal.", "Tempo de Ciclo muito rápido; aumentar tempo do ciclo, ou usar um cristal de maior Mhz." },
- { "Cycle time too slow; decrease cycle time, or use slower crystal.", "Tempo de Ciclo muito lento; diminuir tempo do ciclo, ou usar um cristal de menor Mhz." },
- { "Couldn't open file '%s'", "Não pode abrir o arquivo '%s'" },
- { "Zero baud rate not possible.", "Zero Baud Rate não é possível." },
- { "Compile successful; wrote IHEX for PIC16 to '%s'.\r\n\r\nConfiguration word (fuses) has been set for crystal oscillator, BOD enabled, LVP disabled, PWRT enabled, all code protection off.\r\n\r\nUsed %d/%d words of program flash (chip %d%% full).", "Compilação sucedida; escrito IHEX para PIC16 em '%s'.\r\n\r\nBits de Configuração (fuses) foi estabelecido para o cristal oscilador, BOD ativado, LVP desativado, PWRT ativado, Todos os bits de proteção desativados.\r\n\r\nUsadas %d/%d palavras de programa em flash (Chip %d%% completo)." },
- { "Type", "Tipo" },
- { "Timer", "Temporizador" },
- { "Counter", "Contador" },
- { "Reset", "Reiniciar" },
- { "OK", "OK" },
- { "Cancel", "Cancelar" },
- { "Empty textbox; not permitted.", "Texto vazio; não é permitido" },
- { "Bad use of quotes: <%s>", "Mau uso das aspas: <%s>" },
- { "Turn-On Delay", "Temporizador para Ligar" },
- { "Turn-Off Delay", "Temporizador para Desligar" },
- { "Retentive Turn-On Delay", "Temporizador Retentivo para Ligar" },
- { "Delay (ms):", "Tempo (ms):" },
- { "Delay too long; maximum is 2**31 us.", "Tempo muito longo; Maximo 2**31 us." },
- { "Delay cannot be zero or negative.", "Tempo não pode ser zero ou negativo." },
- { "Count Up", "Contador Crescente" },
- { "Count Down", "Contador Decrescente" },
- { "Circular Counter", "Contador Circular" },
- { "Max value:", "Valor Max:" },
- { "True if >= :", "Verdadeiro se >= :" },
- { "If Equals", "Se Igual" },
- { "If Not Equals", " Se Diferente" },
- { "If Greater Than", "Se Maior Que" },
- { "If Greater Than or Equal To", "Se Maior ou Igual Que" },
- { "If Less Than", "Se Menor Que" },
- { "If Less Than or Equal To", "Se Menor ou Igual Que" },
- { "'Closed' if:", "'Fechado' se:" },
- { "Move", "Mover" },
- { "Read A/D Converter", "Ler Conversor A/D" },
- { "Duty cycle var:", "Var Duty cycle:" },
- { "Frequency (Hz):", "Frequencia (Hz):" },
- { "Set PWM Duty Cycle", "Acionar PWM Duty Cycle" },
- { "Source:", "Fonte:" },
- { "Receive from UART", "Recebe da UART" },
- { "Send to UART", "Envia para UART" },
- { "Add", "Somar" },
- { "Subtract", "Subtrair" },
- { "Multiply", "Multiplicar" },
- { "Divide", "Dividir" },
- { "Destination:", "Destino:" },
- { "is set := :", "esta acionado := :" },
- { "Name:", "Nome:" },
- { "Stages:", "Fases:" },
- { "Shift Register", "Deslocar Registro" },
- { "Not a reasonable size for a shift register.", "Não é um tamanho razoável para um registro de deslocamento." },
- { "String:", "String:" },
- { "Formatted String Over UART", "String Formatada para UART" },
- { "Variable:", "Variavel:" },
- { "Make Persistent", "Fazer Permanente" },
- { "Too many elements in subcircuit!", "Excesso de elementos no SubCircuito!" },
- { "Too many rungs!", "Muitas Linhas (rungs)!" },
- { "Error", "Error" },
- { "ANSI C target does not support peripherals (UART, PWM, ADC, EEPROM). Skipping that instruction.", "ANSI C não suporta periféricos (UART, PWM, ADC, EEPROM). Evite essas instruções." },
- { "Compile successful; wrote C source code to '%s'.\r\n\r\nThis is not a complete C program. You have to provide the runtime and all the I/O routines. See the comments in the source code for information about how to do this.", "Compilação sucedida: Código Fonte escrito em C para '%s'.\r\n\r\nEste programa nao é completo em C. Você tem que fornecer o tempo de execução e de todas as rotinas de E/S. Veja os comentários no código fonte para mais informação sobre como fazer isto." },
- { "Cannot delete rung; program must have at least one rung.", "Não pode apagar a Linha (rung); O programa deve contem pelo menos uma Linha (rung)." },
- { "Out of memory; simplify program or choose microcontroller with more memory.", "Fora de Memória; Simplifique o programa ou escolha um microcontrolador com mais memória." },
- { "Must assign pins for all ADC inputs (name '%s').", "Deve associar pinos para todas as entradas do ADC (nome '%s')." },
- { "Internal limit exceeded (number of vars)", "Limite interno excedido (numero de variáveis)" },
- { "Internal relay '%s' never assigned; add its coil somewhere.", "Rele Interno'%s' não foi associado; adicione esta bobina em outro lugar." },
- { "Must assign pins for all I/O.\r\n\r\n'%s' is not assigned.", "Deve associar pinos a todas E/S.\r\n\r\n'%s' não esta associado." },
- { "UART in use; pins %d and %d reserved for that.", "UART em uso; pinos %d e %d reservado para isso." },
- { "PWM in use; pin %d reserved for that.", "PWM em uso; pino %d reservada para isso." },
- { "UART baud rate generator: divisor=%d actual=%.4f for %.2f%% error.\r\n\r\nThis is too large; try a different baud rate (slower probably), or a crystal frequency chosen to be divisible by many common baud rates (e.g. 3.6864 MHz, 14.7456 MHz).\r\n\r\nCode will be generated anyways but serial may be unreliable or completely broken.", "Gerador UART baud rate: divisor=%d atual=%.4f para %.2f%% error.\r\n\r\nEste é muito grande; Tente com outro valor (provavelmente menor), ou um cristal cuja freqüência seja divisível pelos baud rate mais comuns (p.e. 3.6864MHz, 14.7456MHz).\r\n\r\nO código será gerado de qualquer maneira, porem a serial poderá ser incerta ou completamente fragmentada." },
- { "UART baud rate generator: too slow, divisor overflows. Use a slower crystal or a faster baud rate.\r\n\r\nCode will be generated anyways but serial will likely be completely broken.", "Gerador UART baud rate: muito lento, divisor excedido. Use um cristal mais lento ou um baud rate maior.\r\n\r\nO código será gerado de qualquer maneira, porem a serial poderá ser incerta ou completamente fragmentada.." },
- { "Couldn't open '%s'\n", "Não pode abrir '%s'\n" },
- { "Timer period too short (needs faster cycle time).", "Período de Tempo muito curto (necessitara de um tempo de ciclo maior)." },
- { "Timer period too long (max 32767 times cycle time); use a slower cycle time.", "Tempo do Temporizador muito grande(max. 32767 tempo de ciclo); use um tempo de ciclo menor." },
- { "Constant %d out of range: -32768 to 32767 inclusive.", "Constante %d fora do range: -32768 a 32767 inclusive." },
- { "Move instruction: '%s' not a valid destination.", "Instrução Mover: '%s' o destino não é válido." },
- { "Math instruction: '%s' not a valid destination.", "Instruções Math: '%s' o destino não é válido." },
- { "Piecewise linear lookup table with zero elements!", "Consulta da Tabela de Linearização por Segmentos com elementos zero!" },
- { "x values in piecewise linear table must be strictly increasing.", "Os valores X na Tabela de Linearização por Segmentos deve ser estritamente incrementais." },
- { "Numerical problem with piecewise linear lookup table. Either make the table entries smaller, or space the points together more closely.\r\n\r\nSee the help file for details.", "Problema numérico com a Tabela de Linearização por segmentos. Faça qualquer tabela com entradas menores. ou espace os pontos para mais pròximo.\r\n\r\nVeja em ajuda para mais detalhes." },
- { "Multiple escapes (\\0-9) present in format string, not allowed.", "Não é permitido mais de um caractere especial (\\0-9) dentro da string formatada." },
- { "Bad escape: correct form is \\xAB.", "Caractere Especial com Erro: A forma correta é \\xAB." },
- { "Bad escape '\\%c'", "Caractere Especial com Erro '\\%c'" },
- { "Variable is interpolated into formatted string, but none is specified.", "A variável é interpolada dentro da string formatada, mas nenhuma é especificado." },
- { "No variable is interpolated into formatted string, but a variable name is specified. Include a string like '\\-3', or leave variable name blank.", "Nenhuma variável esta interpolada dentro da string formatada, porem um nome de variável é especificada. Inclua uma string como '\\-3', ou deixe o nome da variável em branco." },
- { "Empty row; delete it or add instructions before compiling.", "Linha Vazia; apague ou adicione instruções antes de compilar." },
- { "Couldn't write to '%s'", "Não pode ser gravado para '%s'." },
- { "Unsupported op (anything ADC, PWM, UART, EEPROM) for interpretable target.", "Op não suportada no interpretador (algum ADC, PWM, UART, EEPROM)." },
- { "Compile successful; wrote interpretable code to '%s'.\r\n\r\nYou probably have to adapt the interpreter to your application. See the documentation.", "Compilação sucedida: Código para interpretador escrito para '%s'.\r\n\r\nVocê provavelmente tem que adaptar o interpretador para sua aplicação. Veja a documentação." },
- { "Microcontroller '%s' not supported.\r\n\r\nDefaulting to no selected MCU.", "Microcontrolador '%s' não suportado.\r\n\r\nFalha nenhum Micro selecionado." },
- { "File format error; perhaps this program is for a newer version of LDmicro?", "Erro no formato de arquivo; talvez este programa é para uma versão mais nova do LDmicro?." },
- { "Index:", "Índice:" },
- { "Points:", "Pontos:" },
- { "Count:", "Contador:" },
- { "Edit table of ASCII values like a string", "Editar tabela do ASCII, valores como uma string" },
- { "Look-Up Table", "Buscar na Tabela" },
- { "Piecewise Linear Table", "Tabela de Linearização por Segmentos" },
- { "LDmicro Error", "LDmicro Error" },
- { "Compile Successful", "Compilação Sucedida" },
- { "digital in", "entrada digital" },
- { "digital out", "saída digital" },
- { "int. relay", "rele interno" },
- { "UART tx", "UART tx" },
- { "UART rx", "UART rx" },
- { "PWM out", "saída PWM" },
- { "turn-on delay", "ativar atraso" },
- { "turn-off delay", "desativar atraso" },
- { "retentive timer", "temporizador com memória" },
- { "counter", "contador" },
- { "general var", "var geral" },
- { "adc input", "entrada adc" },
- { "<corrupt!>", "<corrompido!>" },
- { "(not assigned)", "(sem atribuição)" },
- { "<no UART!>", "<sem UART!>" },
- { "<no PWM!>", "<sem PWM!>" },
- { "TOF: variable cannot be used elsewhere", "TOF: a variável não pode ser usada em outra parte" },
- { "TON: variable cannot be used elsewhere", "TON: a variável não pode ser usada em outra parte" },
- { "RTO: variable can only be used for RES elsewhere", "RTO: a variável somente pode ser usada como RES em outra parte" },
- { "Variable '%s' not assigned to, e.g. with a MOV statement, an ADD statement, etc.\r\n\r\nThis is probably a programming error; now it will always be zero.", "variável '%s' não atribuída, p.e. com o comando MOV, comando ADD, etc.\r\n\r\nIsto é provavelmente um erro de programação; será sempre zero." },
- { "Variable for '%s' incorrectly assigned: %s.", "Variável para '%s' atribuída incorretamente : %s." },
- { "Division by zero; halting simulation", "Divisão por zero; Parando simulação" },
- { "!!!too long!!!", "!Muito longo!" },
- { "\n\nI/O ASSIGNMENT:\n\n", "\n\nE/S ATRIBUIDA:\n\n" },
- { " Name | Type | Pin\n", " Nome | Tipo | Pino\n" },
- { "Serial (UART) will use pins %d and %d.\r\n\r\n", "A porta Serial (UART) usará os pinos %d e %d.\r\n\r\n" },
-};
-static Lang LangPt = {
- LangPtTable, sizeof(LangPtTable)/sizeof(LangPtTable[0])
-};
-#endif
-#ifdef LDLANG_TR
-static LangTable LangTrTable[] = {
- { "Target frequency %d Hz, closest achievable is %d Hz (warning, >5%% error).", "Hedef frekans %d Hz, bu değere en yakın olası değer %d Hz (Uyarı, >5% hatası)." },
- { "Compile successful; wrote IHEX for AVR to '%s'.\r\n\r\nRemember to set the processor configuration (fuses) correctly. This does not happen automatically.", "Derleme başarılı. AVR için derlenen '%s' IHEX dosyasına kaydedildi.\r\n\r\n MİB konfigürasyonunu ayarlamayı unutmayın. Bu işlem otomatik olarak yapılmamaktadır." },
- { "( ) Normal", "( ) Normal" },
- { "(/) Negated", "(/) Terslenmiş" },
- { "(S) Set-Only", "(S) Set" },
- { "(R) Reset-Only", "(R) Reset" },
- { "Pin on MCU", "MİB Bacağı" },
- { "Coil", "Bobin" },
- { "Comment", "Açıklama" },
- { "Cycle Time (ms):", "Çevrim Süresi (ms):" },
- { "Crystal Frequency (MHz):", "Kristal Frekansı (MHz):" },
- { "UART Baud Rate (bps):", "UART Baud Rate (bps):" },
- { "Serial (UART) will use pins %d and %d.\r\n\r\n", "Seri iletişim için (UART) %d ve %d bacakları kullanılacaktır.\r\n\r\n" },
- { "Please select a micro with a UART.\r\n\r\n", "Lütfen UART olan bir MİB seçiniz.\r\n\r\n" },
- { "No serial instructions (UART Send/UART Receive) are in use; add one to program before setting baud rate.\r\n\r\n", "Seri iletişim komutu kullanmadınız. Hızı ayarlamadan önce komut kullanmalısınız.\r\n\r\n" },
- { "The cycle time for the 'PLC' runtime generated by LDmicro is user-configurable. Very short cycle times may not be achievable due to processor speed constraints, and very long cycle times may not be achievable due to hardware overflows. Cycle times between 10 ms and 100 ms will usually be practical.\r\n\r\nThe compiler must know what speed crystal you are using with the micro to convert between timing in clock cycles and timing in seconds. A 4 MHz to 20 MHz crystal is typical; check the speed grade of the part you are using to determine the maximum allowable clock speed before choosing a crystal.", "PLC için LDMicro tarafından verilen çevrim süresi kullanıcı tarafından değiştirilebilir. Çok kısa süreler işlemcinin hızından kaynaklanan sebeplerden dolayı verilemeyebilir. 10ms ile 100ms arasındaki değerler çevrim süresi için genellikle uygun değerlerdir.\r\n\r\n.LDMicro kullanılan kristalin hızını bilmelidir. Bu değer program içerisinde kullanılır. Bilindiği üzere genellikle 4MHz ile 20MHz arasında değere sahip kristaller kullanılmaktadır. Kullandığınız kristalin değerini ayarlamalısınız." },
- { "PLC Configuration", "PLC Ayarları" },
- { "Zero cycle time not valid; resetting to 10 ms.", "Çevrim süresi sıfır olamaz. 10ms olarak değiştirildi." },
- { "Source", "Kaynak" },
- { "Internal Relay", "Dahili Röle" },
- { "Input pin", "Giriş Bacağı" },
- { "Output pin", "Çıkış Bacağı" },
- { "|/| Negated", "|/| Terslenmiş" },
- { "Contacts", "Kontak" },
- { "No ADC or ADC not supported for selected micro.", "Bu işlemcide ADC yok yada ADC desteklenmiyor." },
- { "Assign:", "Değeri:" },
- { "No microcontroller has been selected. You must select a microcontroller before you can assign I/O pins.\r\n\r\nSelect a microcontroller under the Settings menu and try again.", "İşlemci seçmediniz.\r\n\r\n G/Ç uçlarını seçmeden önce Ayarlar menüsünden işlemci seçiniz." },
- { "I/O Pin Assignment", "G/Ç Bacak Tanımı" },
- { "Can't specify I/O assignment for ANSI C target; compile and see comments in generated source code.", "ANSI C hedef için G/Ç tanımlaması yapılamadı. Dosyayı derleyerek oluşturulan kaynak kodundaki yorumları inceleyiniz." },
- { "Can't specify I/O assignment for interpretable target; see comments in reference implementation of interpreter.", "Hedef için G/Ç tanımı yapılamadı. Derleyicinin kullanım kitapçığını inceleyiniz." },
- { "Can only assign pin number to input/output pins (Xname or Yname or Aname).", "Sadece giriş/çıkış uçları için bacak tanımlaması yapılabilir. (XName veya YName veya AName)." },
- { "No ADC or ADC not supported for this micro.", "Bu işlemcide ADC yok yada ADC desteklenmiyor." },
- { "Rename I/O from default name ('%s') before assigning MCU pin.", "('%s') öntanımlı isimdir. MİB bacağı tanımlamadan önce bu ismi değiştiriniz." },
- { "I/O Pin", "G/Ç Bacakları" },
- { "(no pin)", "(Bacak Yok)" },
- { "<UART needs!>", "<UART gerekli!>" },
- { "<PWM needs!>", "<PWM gerekli!>" },
- { "<not an I/O!>", "<G/Ç değil>" },
- { "Export As Text", "Yazı dosyası olarak ver" },
- { "Couldn't write to '%s'.", "'%s' dosyasına yazılamadı." },
- { "Compile To", "Derlenecek Yer" },
- { "Must choose a target microcontroller before compiling.", "Derlemeden önce işlemci seçilmelidir." },
- { "UART function used but not supported for this micro.", "Komut kullanmışsınız, ancak UART işlemleri bu işlemci için desteklenmiyor." },
- { "PWM function used but not supported for this micro.", "Komut kullanmışsınız, ancak PWM işlemleri bu işlemci için desteklenmiyor." },
- { "The program has changed since it was last saved.\r\n\r\nDo you want to save the changes?", "Dosyada değişiklik yaptınız.\r\n\r\n Kaydetmek ister misiniz?" },
- { "--add comment here--", "--aciklamanizi buraya ekleyiniz--" },
- { "Start new program?", "Yeni dosya oluşturulsun mu?" },
- { "Couldn't open '%s'.", "'%s' dosyasına kayıt yapılamıyor." },
- { "Name", "İsim" },
- { "State", "Durum/Değer" },
- { "Pin on Processor", "İşlemci Bacak No" },
- { "MCU Port", "İşlemci Portu" },
- { "LDmicro - Simulation (Running)", "LDmicro - Simülasyon (Çalışıyor)" },
- { "LDmicro - Simulation (Stopped)", "LDmicro - Simülasyon (Durduruldu)" },
- { "LDmicro - Program Editor", "LDmicro – Program Editörü " },
- { " - (not yet saved)", " - (değişiklikler kaydedilmedi)" },
- { "&New\tCtrl+N", "&Yeni Dosya\tCtrl+N" },
- { "&Open...\tCtrl+O", "&Dosya Aç\tCtrl+O" },
- { "&Save\tCtrl+S", "&Dosyayı Kaydet\tCtrl+S" },
- { "Save &As...", "Dosyayı Farklı Kaydet" },
- { "&Export As Text...\tCtrl+E", "&Metin Dosyası Olarak Kaydet\tCtrl+E" },
- { "E&xit", "Çıkış" },
- { "&Undo\tCtrl+Z", "Değişikliği Geri Al\tCtrl+Z" },
- { "&Redo\tCtrl+Y", "&Değişikliği Tekrarla\tCtrl+Y" },
- { "Insert Rung &Before\tShift+6", "Üst kısma satır (Rung) ekle\tShift+6" },
- { "Insert Rung &After\tShift+V", "Alt kısma satır (Rung) ekle\tShift+V" },
- { "Move Selected Rung &Up\tShift+Up", "Seçili satırı üste taşı\tShift+Up" },
- { "Move Selected Rung &Down\tShift+Down", "Seçili satırı alta taşı\tShift+Down" },
- { "&Delete Selected Element\tDel", "&Seçili Elemanı Sil\tDel" },
- { "D&elete Rung\tShift+Del", "Seçili Satırı Sil\tShift+Del" },
- { "Insert Co&mment\t;", "Açıklama Ekle\t;" },
- { "Insert &Contacts\tC", "Kontak Eekle\tC" },
- { "Insert OSR (One Shot Rising)\t&/", "OSR ekle (Yükselen Kenar)\t&/" },
- { "Insert OSF (One Shot Falling)\t&\\", "OSF ekle (Düşen Kenar)\t&\\" },
- { "Insert T&ON (Delayed Turn On)\tO", "T&ON ekle (Turn-On Gecikme)\tO" },
- { "Insert TO&F (Delayed Turn Off)\tF", "T&OF ekle (Turn-Off Gecikme)\tF" },
- { "Insert R&TO (Retentive Delayed Turn On)\tT", "R&TO ekle (Süre Sayan Turn-On Gecikme)\tT" },
- { "Insert CT&U (Count Up)\tU", "CT&U ekle (Yukarı Sayıcı)\tU" },
- { "Insert CT&D (Count Down)\tI", "CT&D ekle (Aşağı Sayıcı)\tI" },
- { "Insert CT&C (Count Circular)\tJ", "CT&C ekle (Döngüsel Sayıcı)\tJ" },
- { "Insert EQU (Compare for Equals)\t=", "EQU ekle (Eşitlik Kontrolü)\t=" },
- { "Insert NEQ (Compare for Not Equals)", "NEQ ekle (Farklılık Kontrolü)" },
- { "Insert GRT (Compare for Greater Than)\t>", "GRT ekle (Büyük Kontrolü)\t>" },
- { "Insert GEQ (Compare for Greater Than or Equal)\t.", "GEQ ekle (Büyük yada Eşit Kontrolü)\t." },
- { "Insert LES (Compare for Less Than)\t<", "LES ekle (Küçük Kontrolü)\t<" },
- { "Insert LEQ (Compare for Less Than or Equal)\t,", "LEQ ekle (Küçük yada Eşit Kontrolü)\t," },
- { "Insert Open-Circuit", "Açık Devre ekle" },
- { "Insert Short-Circuit", "Kapalı Devre ekle" },
- { "Insert Master Control Relay", "Ana Kontrol Rölesi ekle" },
- { "Insert Coi&l\tL", "Bobin ek&le\tL" },
- { "Insert R&ES (Counter/RTO Reset)\tE", "R&ES ekle (RTO/Sayıcı Sıfırlaması)\tE" },
- { "Insert MOV (Move)\tM", "MOV (Taşı) ekle\tM" },
- { "Insert ADD (16-bit Integer Add)\t+", "ADD (16 bit Toplama)ekle\t+" },
- { "Insert SUB (16-bit Integer Subtract)\t-", "SUB (16 bit çıkarma) ekle\t-" },
- { "Insert MUL (16-bit Integer Multiply)\t*", "MUL (16 bit çarpma) ekle\t*" },
- { "Insert DIV (16-bit Integer Divide)\tD", "DIV (16 bit bölme) ekle\tD" },
- { "Insert Shift Register", "Shift Register ekle" },
- { "Insert Look-Up Table", "Değer Tablosu ekle" },
- { "Insert Piecewise Linear", "Parçalı Lineer ekle" },
- { "Insert Formatted String Over UART", "UART Üzerinden Biçimlendirilmiş Kelime Ekle" },
- { "Insert &UART Send", "&UART'dan Gönderme ekle" },
- { "Insert &UART Receive", "&UART'dan Alma ekle" },
- { "Insert Set PWM Output", "PWM Çıkışı Akit Et ekle" },
- { "Insert A/D Converter Read\tP", "A/D Çeviriciden Oku ekle\tP" },
- { "Insert Make Persistent", "EPROM'da Sakla ekle" },
- { "Make Norm&al\tA", "Normale Çevir\tA" },
- { "Make &Negated\tN", "Terslenmiş Yap\tN" },
- { "Make &Set-Only\tS", "Set Yap\tS" },
- { "Make &Reset-Only\tR", "Reset Yap\tR" },
- { "&MCU Parameters...", "&İşlemci Ayarları..." },
- { "(no microcontroller)", "(işlemci yok)" },
- { "&Microcontroller", "İşlemci Seçimi" },
- { "Si&mulation Mode\tCtrl+M", "Si&mülasyon Modu\tCtrl+M" },
- { "Start &Real-Time Simulation\tCtrl+R", "Ge&rçek Zamanlı Simülasyonu Başlat\tCtrl+R" },
- { "&Halt Simulation\tCtrl+H", "Simülasyonu Durdur\tCtrl+H" },
- { "Single &Cycle\tSpace", "Satır Satır Simülasyon\tEspace" },
- { "&Compile\tF5", "&Derle\tF5" },
- { "Compile &As...", "Farklı Derle..." },
- { "&Manual...\tF1", "&Kitapçık...\tF1" },
- { "&About...", "&Bilgi..." },
- { "&File", "&Dosya" },
- { "&Edit", "&Düzen" },
- { "&Settings", "&Ayarlar" },
- { "&Instruction", "K&omutlar" },
- { "Si&mulate", "Si&mülasyon" },
- { "&Compile", "&Derle" },
- { "&Help", "&Yardım" },
- { "no MCU selected", "İşlemci Seçilmedi" },
- { "cycle time %.2f ms", "çevrim süresi %.2f ms" },
- { "processor clock %.4f MHz", "işlemci frekansı %.4f MHz" },
- { "Internal error relating to PIC paging; make program smaller or reshuffle it.", "PIC sayfalaması ile ilgili dahili hata oluştu. Programı kısaltınız yada değiştiriniz." },
- { "PWM frequency too fast.", "PWM frekansı çok hızlı." },
- { "PWM frequency too slow.", "PWM frekansı çok yavaş." },
- { "Cycle time too fast; increase cycle time, or use faster crystal.", "Çevrim süresi çok kısa. Süreyi yada kristal frekansını artırınız." },
- { "Cycle time too slow; decrease cycle time, or use slower crystal.", "Çevrim süresi çok uzun. Süreyi yada kristal frekansını azaltınız.." },
- { "Couldn't open file '%s'", "'%s' dosyası açılamadı." },
- { "Zero baud rate not possible.", "İletişim hızı (Baudrate) sıfır olamaz." },
- { "Compile successful; wrote IHEX for PIC16 to '%s'.\r\n\r\nConfiguration word (fuses) has been set for crystal oscillator, BOD enabled, LVP disabled, PWRT enabled, all code protection off.\r\n\r\nUsed %d/%d words of program flash (chip %d%% full).", "Derleme başarıyla yapıldı; PIC16 için IHEX dosyası '%s' dosyasına kaydedildi.\r\n\r\nAyarlar: (PIC konfigürasyonu) kristal osilatör, BOD aktif, LVP pasif, PWRT aktif, tüm kod koruması kapalı.\r\n\r\nPIC hafızasının %d/%d kelimesi kullanıldı. (Hafıza %d%% dolu)." },
- { "Type", "Tipi" },
- { "Timer", "Zamanlayıcı" },
- { "Counter", "Sayıcı" },
- { "Reset", "Reset" },
- { "OK", "Tamam" },
- { "Cancel", "Vazgeç" },
- { "Empty textbox; not permitted.", "Yazı kutusu boş olamaz" },
- { "Bad use of quotes: <%s>", "Tırnaklar yanlış kullanılmış: <%s>" },
- { "Turn-On Delay", "Turn-On Gecikme Devresi" },
- { "Turn-Off Delay", "Turn-Off Gecikme Devresi" },
- { "Retentive Turn-On Delay", "Değeri Saklanan Turn-On Gecikme" },
- { "Delay (ms):", "Gecikme (ms):" },
- { "Delay too long; maximum is 2**31 us.", "Gecikme çok fazla. En fazla 2**31 us olabilir." },
- { "Delay cannot be zero or negative.", "Gecikme sıfır yada eksi değer olamaz." },
- { "Count Up", "Yukarı Say" },
- { "Count Down", "Aşağı Say" },
- { "Circular Counter", "Dairesel Sayıcı" },
- { "Max value:", "En Yüksek Değer:" },
- { "True if >= :", "Doğru Eğer >= :" },
- { "If Equals", "Eşitse" },
- { "If Not Equals", "Eşit Değilse" },
- { "If Greater Than", "Büyükse" },
- { "If Greater Than or Equal To", "Büyük yada Eşitse" },
- { "If Less Than", "Küçükse" },
- { "If Less Than or Equal To", "Küçük yada Eşitse" },
- { "'Closed' if:", "'Kapalı' Eğer:" },
- { "Move", "Taşı" },
- { "Read A/D Converter", "A/D Çeviriciyi Oku" },
- { "Duty cycle var:", "Pals Genişliği Değeri:" },
- { "Frequency (Hz):", "Frekans (Hz):" },
- { "Set PWM Duty Cycle", "PWM Pals Genişliği Değeri" },
- { "Source:", "Kaynak:" },
- { "Receive from UART", "UART'dan bilgi al" },
- { "Send to UART", "UART'dan bilgi gönder" },
- { "Add", "Topla" },
- { "Subtract", "Çıkar" },
- { "Multiply", "Çarp" },
- { "Divide", "Böl" },
- { "Destination:", "Hedef:" },
- { "is set := :", "Verilen Değer := :" },
- { "Name:", "İsim:" },
- { "Stages:", "Aşamalar:" },
- { "Shift Register", "Shift Register" },
- { "Not a reasonable size for a shift register.", "Shift Register için kabul edilebilir değer değil." },
- { "String:", "Karakter Dizisi:" },
- { "Formatted String Over UART", "UART Üzerinden Biçimlendirilmiş Karakter Dizisi" },
- { "Variable:", "Değişken:" },
- { "Make Persistent", "EEPROM'da Sakla" },
- { "Too many elements in subcircuit!", "Alt devrede çok fazla eleman var!" },
- { "Too many rungs!", "Satır sayısı (Rung) fazla!" },
- { "Error", "Hata" },
- { "ANSI C target does not support peripherals (UART, PWM, ADC, EEPROM). Skipping that instruction.", "ANSI C hedef özellikleri desteklemiyor.(UART, ADC, EEPROM). İlgili komutlar işlenmeyecek." },
- { "Compile successful; wrote C source code to '%s'.\r\n\r\nThis is not a complete C program. You have to provide the runtime and all the I/O routines. See the comments in the source code for information about how to do this.", "Derleme başarıyla tamamlandı. C kaynak kodu '%s' dosyasına yazıldı.\r\n\r\nBu dosya tam bir C dosyası değildir. G/Ç rutinlerini kendiniz sağlamalısınız. Dosyayı incelemeniz faydalı olacaktır." },
- { "Cannot delete rung; program must have at least one rung.", "Bu satır silinemez. Programda en az bir tane satır (Rung) olmalıdır." },
- { "Out of memory; simplify program or choose microcontroller with more memory.", "İŞlemci hafızası doldu; Programı kısaltınız yada daha yüksek hafızası olan bir işlemci seçiniz." },
- { "Must assign pins for all ADC inputs (name '%s').", "Tüm ADC girişlerinin bacakları belirtilmelidir (ADC '%s')." },
- { "Internal limit exceeded (number of vars)", "Dahili sınır aşıldı (Değişken Sayısı)" },
- { "Internal relay '%s' never assigned; add its coil somewhere.", "'%s' dahili rölesine değer verilmedi, Bu röle için bir bobin ekleyiniz." },
- { "Must assign pins for all I/O.\r\n\r\n'%s' is not assigned.", "Tüm G/Ç uçları için bacaklar belirtilmelidir.\r\n\r\n'%s' ucuna değer verilmemiş." },
- { "UART in use; pins %d and %d reserved for that.", "UART Kullanımda; %d ve %d bacakları bunun için kullanılmaktadır. Siz kullanamazsınız." },
- { "PWM in use; pin %d reserved for that.", "PWM Kullanımda; %d bacağı bunun için ayrılmıştır. Siz kullanamazsınız.." },
- { "UART baud rate generator: divisor=%d actual=%.4f for %.2f%% error.\r\n\r\nThis is too large; try a different baud rate (slower probably), or a crystal frequency chosen to be divisible by many common baud rates (e.g. 3.6864 MHz, 14.7456 MHz).\r\n\r\nCode will be generated anyways but serial may be unreliable or completely broken.", "UART Hız Hesaplayıcısı: Bölen=%d Gerçekte=%.4f (%.2f%% hata payı ile).\r\n\r\nBu değer çok yüksektir. Değişik bir değer denemelisiniz yada kristal frekansını sık kullanılan ve bu değerlere bölünebilen bir değer seçiniz. (Mesela 3.6864MHz, 14.7456MHz gibi).\r\n\r\nHer durumda kod oluşturulacaktır; ancak seri iletişim düzgün çalışmayabilir yada tamamen durabilir." },
- { "UART baud rate generator: too slow, divisor overflows. Use a slower crystal or a faster baud rate.\r\n\r\nCode will be generated anyways but serial will likely be completely broken.", "UART Hız Hesaplayıcısı: Hız çok düşük. Bu nedenle bölen taşma yapıyor. Ya kristal frekansını düşürünüz yada hızı (baudrate) artırınız.\r\n\r\nHer durumda kod oluşturulacaktır; ancak seri iletişim düzgün çalışmayabilir yada tamamen durabilir." },
- { "Couldn't open '%s'\n", "'%s' dosyası açılamadı\n" },
- { "Timer period too short (needs faster cycle time).", "Zamanlayıcı peryodu çok kısa (daha yüksek çevrim süresi gerekli)." },
- { "Timer period too long (max 32767 times cycle time); use a slower cycle time.", "Zamanlayıcı peryodu çok kısa(en fazla. çevrim süresinin 32767 katı olabilir); çevrim süresini düşürünüz." },
- { "Constant %d out of range: -32768 to 32767 inclusive.", "%d sabiti aralığın dışında: -32768 ile 32767 arasında olmalıdır." },
- { "Move instruction: '%s' not a valid destination.", "Taşıma Komutu: '%s' geçerli bir hedef adresi değil." },
- { "Math instruction: '%s' not a valid destination.", "Matematik Komutu: '%s'geçerli bir hedef adresi değil." },
- { "Piecewise linear lookup table with zero elements!", "Parçalı doğrusal arama tablosunda değer yok!" },
- { "x values in piecewise linear table must be strictly increasing.", "Parçalı doğrusal arama tablosundaki x değerleri artan sıralamalı olmalı." },
- { "Numerical problem with piecewise linear lookup table. Either make the table entries smaller, or space the points together more closely.\r\n\r\nSee the help file for details.", "Parçalı doğrusal arama tablosunda sayısal hata.\r\n\r\nDetaylar için yardım menüsünü inceleyiniz." },
- { "Multiple escapes (\\0-9) present in format string, not allowed.", "Biçimli karakter dizisinde birden çok escape kodu var(\\0-9)." },
- { "Bad escape: correct form is \\xAB.", "Yanlış ESC komutu: doğru şekil = \\xAB." },
- { "Bad escape '\\%c'", "Yanlış ESC komutu '\\%c'" },
- { "Variable is interpolated into formatted string, but none is specified.", "Biçimlendirilmiş karakter kümesine değişken tanımlanmış ama hiç belirtilmemiş." },
- { "No variable is interpolated into formatted string, but a variable name is specified. Include a string like '\\-3', or leave variable name blank.", "Biçimlendirilmiş karakter kümesine değişken atanmamış ama değişken ismi belirtilmiş. Ya değişken ismini belirtiniz yada '\\-3' gibi bir değer veriniz.." },
- { "Empty row; delete it or add instructions before compiling.", "Satır boş; Satırı silmeli yada komut eklemelisiniz." },
- { "Couldn't write to '%s'", "'%s' dosyasına kayıt yapılamıyor." },
- { "Unsupported op (anything ADC, PWM, UART, EEPROM) for interpretable target.", "Komut desteklenmiyor. (ADC, PWM, UART, EEPROM ile ilgili komutlardan herhangi biri)" },
- { "Compile successful; wrote interpretable code to '%s'.\r\n\r\nYou probably have to adapt the interpreter to your application. See the documentation.", "Derleme başarıyla tamamlandı. Kod '%s' dosyasına yazıldı.\r\n\r\nDerleyiciyi uygulamanıza göre değiştirmeniz gerekebilir. Geniş bilgi için LDMicro belgelerine başvurabilirsiniz." },
- { "Microcontroller '%s' not supported.\r\n\r\nDefaulting to no selected MCU.", "'%s' desteklenen bir işlemci değil.\r\n\r\nİşlemci ayarı işlemci yok şeklinde değiştirilmiştir." },
- { "File format error; perhaps this program is for a newer version of LDmicro?", "Dosya biçimi hatası. Açmaya çalıştığınız dosya ya LDMicro dosyası değil yada yeni bir sürüm ile yazılmış." },
- { "Index:", "Liste:" },
- { "Points:", "Değer Sayısı:" },
- { "Count:", "Adet:" },
- { "Edit table of ASCII values like a string", "ASCII değer tablosunu karakter dizisi gibi düzenle." },
- { "Look-Up Table", "Arama Tablosu" },
- { "Piecewise Linear Table", "Parçalı Lineer Tablo" },
- { "LDmicro Error", "LDmicro Hatası" },
- { "Compile Successful", "Derleme Başarılı" },
- { "digital in", "Dijital Giriş" },
- { "digital out", "Dijital Çıkış" },
- { "int. relay", "Dahili Röle" },
- { "UART tx", "UART tx" },
- { "UART rx", "UART rx" },
- { "PWM out", "PWM Çıkışı" },
- { "turn-on delay", "Turn-On Gecikme" },
- { "turn-off delay", "Turn-Off Gecikme" },
- { "retentive timer", "değeri saklanan zamanlayıcı" },
- { "counter", "Sayıcı" },
- { "general var", "Genel Değişken" },
- { "adc input", "ADC Girişi" },
- { "<corrupt!>", "<bozuk>" },
- { "(not assigned)", "(tanımlı değil)" },
- { "<no UART!>", "<UART Yok!>" },
- { "<no PWM!>", "<PWM Yok!>" },
- { "TOF: variable cannot be used elsewhere", "TOF: Değişken başka bir yerde kullanılamaz" },
- { "TON: variable cannot be used elsewhere", "TON: Değişken başka bir yerde kullanılamaz" },
- { "RTO: variable can only be used for RES elsewhere", "RTO: Değişken sadece RES için kullanılabilir" },
- { "Variable '%s' not assigned to, e.g. with a MOV statement, an ADD statement, etc.\r\n\r\nThis is probably a programming error; now it will always be zero.", "'%s' değer atanmamış.Örneğin, MOV, ADD komutları ile değer atanabilir.\r\n\r\nMuhtemelen bu bir programlama hatasıdır. Bu nedenle değişkenin değeri 0 olarak kullanılacaktır." },
- { "Variable for '%s' incorrectly assigned: %s.", "'%s' için değişken hatalı atanmış: %s." },
- { "Division by zero; halting simulation", "Sıfıra bölüm; Simülasyon durduruldu." },
- { "!!!too long!!!", "!!!çok uzun!!" },
- { "\n\nI/O ASSIGNMENT:\n\n", "\n\nG/Ç TANIMI:\n\n" },
- { " Name | Type | Pin\n", " İsim | Tipi | Bacak\n" },
-};
-static Lang LangTr = {
- LangTrTable, sizeof(LangTrTable)/sizeof(LangTrTable[0])
-};
-#endif