592
Jetter AG
12 OS update
Operating system update from within the application program
The file functions included in the STX language let you carry out a
program-controlled OS update of a JC-120MC from within an OS file.
An OS file must be available in the file system of the JC-120MC.
The operating system of the JC-120MC and the application program must
be running.
Note:
Make sure it remains energized.
To start an OS update out of the application program, proceed as follows:
Step
Action
1
Copy the OS file to a file of any name and of the extension
*.os
in the
directory
/System/OS
.
2
To activate the transferred OS, for example by writing to the system
command register, re-boot the controller.
Var
SourceName:
String
;
DestinationName:
String
;
UpdateIt: Bool;
End_Var
;
//*****************************************************
// Name: OSupdate
// 1. Activate 'Tracing' in JetSym
// 2. Set the name of the source file in 'SourceName'
// 3. Set the flag 'UpdateIt'
//*****************************************************
Task
OSupdate
Autorun
Var
ResCopy: Int;
End_Var
;
DestinationName :=
'/System/OS/OperatingSystem.os'
;
Loop
UpdateIt :=
False
;
When
UpdateIt
Continue
;
ResCopy := FileCopy(SourceName,
DestinationName);
Trace(
'Result : '
+ IntToStr(ResCopy) +
'$n'
);
End_Loop
;
End_Task
;
Introduction
Prerequisites
Updating the OS
JetSym STX program
Summary of Contents for JC-120MC
Page 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Page 18: ......
Page 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Page 160: ......
Page 186: ......
Page 196: ......
Page 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Page 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Page 586: ......
Page 604: ......
Page 633: ......