Casio PA-2400W manual Details of Command and Option

Page 58

7.13 Details of Command and Option

Title

 

Command

FLCE /Y

This command sets up the device, baud rate, and communication mode used for communication. If this command is omitted, the default value {IrDA, , } is used.

Any of the parameters can be omitted. If this is done, the default values for each parameter will be used. Always insert this command directly after the word “FLCE”. Placing it in another place will result in a parameter error.

￿C Language Interface￿

Calling Sequence￿

FLCE /Y={ [<device>], [<baud rate>], [<mode>] }

￿

(Comma must be written and no space allowed. Parameters in [ ] can be omitted.)

Parameters￿

 

Device

Select either "IrDA" or "COM1".

Baud rate

￿￿If "IrDA" is selected – the baud rate setting can not be allowed.

 

If "COM1" is selected - The following baud rates can be selected for RS-232C communication.

 

9600, 19200, 38400, 57600, 115200

 

Combinations other than those described above are not permitted and will cause a parameter

 

error.

Mode

￿"H" - PA-2400W-to-PA-2400W command specification mode (Session-wait timeout is

 

1 minute.)

 

This option is used by one side which specifies the operation command when performing

 

communication between two PA-2400Ws.

 

(The FLCE on the communication partner should operate in the idle start mode.)

 

"I" - Normal mode (Session-wait timeout is infinite.)

 

￿Only "H" or "I" can be specified.

 

If mode specification is omitted, the normal mode with the session-wait timeout set to 1

 

minute is automatically specified.

 

Table 7.7

￿

Startup

Communication Partner

Session Wait Timeout

 

 

1 minute

Infinite

Idle (including script)

PC (I/O Box)/PA-2400W

No mode

Mode

Designation of

PC (I/O Box)

specification

Specification, “I”

Operation command

PA-2400W

Mode

 

 

 

specification, “H”

-

Startup Examples￿

FLCE /Y={COM1, 115200, } /S "\casio\*.dat" "d:\casiodat\"

Communication is performed using the RS-232C port at a baud rate of 115.2 Kbps. (Session-wait timeout is 1 minute.)

FLCE /Y={, , I} /S "\casio\*.dat" "d:\casiodat\"

Communication is performed through command specification with the device name and the baud rate are default-set. (Session-wait timeout is infinite.)

FLCE /Y={, , H} /S "\casio\*.dat" "d:\casiodat\"

Communication is performed between two PA-2400Ws through command specification with the device name and the baud rate are default-set. (Session-wait timeout is 1 minute.)

FLCE /Y={, , I}

Communication is performed in the idle mode with the device name and the baud rate are default-set.

￿(Session-wait timeout is 1 minute.)

FLCE /Y={, , } /S "\casio\*.dat" "d:\casiodat\"

Communication is performed under the same conditions (with default values) of which "/Y" is omitted.

58

Image 58
Contents PA-2400W Library Manual VersionTable of Contents Fchkce /G Fchkce /C Preface CasioSystem Library Bootup LibrarySupported Files SIPanel LibrarySystem configuration Host PC PA-2400W CopyDedicated Library and Utility System Library 3 I/O Bootup LibrarySIPanel Library File Transfer Utility File Check UtilityDevelopment Environment System Library Overview Parameters None Return Values Details of FunctionTitle Function Header #include CasioSys.h RemarksTurns off the backlight Language Interface Calling Sequence False TrueBacklight is on Backlight is offHeader #include CasioSys. h Remarks DisablePowerOff Bool EnablePowerOff Enable the power to be turned off with the power button Disable the power to be turned off with the power buttonHeader Bool ApoCountReset Void SoftReset Language Interface Calling Sequence Disables automatic power-on with the alarmInternal error Parameters Bool bModeBool GetPowerOnAlarm Default Sample program to acquire power-on event notification Bool GetPowerEventStat SIPANEL.DLL SIPanel Library OverviewSIPANEL.EXE Program for starting up the library Use of SIPanel LibraryRestrictions RegistryLpctstr lpParam Sipshow SiphideSample program to start up the SIPanel Hinstance LptstrTchar ClassNameTSR = TEXTSipTsr Sample program of application software for business useTchar ClassName = Text CallSip HbCallText = CreateWindow TEXTbutton, TEXTText AreaWsvisible Wsoverlapped Wssysmenu HWnd = CreateWindowClassName, ClassNameLpCmdLine Find SipTsr Px,y Options of Command LineSw,h IOBOX1.DLL O Bootup Library OverviewFunction Port294,967,295 msec. equals to Infinite Infinite = No timeoutDword Fail to call the functionMultiple-Thread Mode Sequential ModeUse of ioboxchk Hwnd Sample Program= Null WINDOWHEIGHT/2 WsoverlappedWINDOWWIDTH/2 NullCase Wmpaint Wait for 5 seconds Enable the power on event notification Disable the power on by alarmRegistry of Libraries RS-232C Interface File Transfer Utility OverviewIrDA 1.0 Interface List of Supported Commands Operation Use of FlceTermination of Flce Input ParameterRestrictions Types of Arguments Communication CommandsOptions OverwriteMethod of Describing Pathname Reference Storage Card PC card My Documents Internal RAMDOS Windows95 /Windows NT Required Error if omittedSpecifying Non-existing File Windows CESetting Up Registry Setting Up ItemsLong lReg1 Setting Up Registry with User ApplicationHkey hKey1 Dword Disp1Err=FALSE Else If err==TRUE Return errTermination Codes Should take an action that is appropriate to each definition Error Code Meaning Possible Cause Remedy Location of Log File Log FileLog File Name Method of Creation12Precautions Details of Command and Option Flce /S \casio\*.dat d\casiodat\ Transmission file pathnameDestination directory pathname Flce /SR \casio\*.dat d\casiodat\\12\*.dat d\casio\*.* \casio data\ PathnamePathname of requested file Flce /RR a\12\*.dat d\casio\*.* \casio data\Target file pathname Appended file pathnameFlce /A \MY\casio.dat b\your\master.dat Pathname of file to be deleted Without the R option Flce /N a\ 12\kk.dat a\casio\ Source pathnameDestination pathname Flce /N a\12\kk.dat a\casio\sj.datParameters None SetupExample Flce /SR \casio ap\*.* \casio ap\ /TFlce /Y=COM1, , casio.scr Session with PCFlce casio.scr Session between PA-2400W-and-PA-2400WCommand and Status Idle notificationPreparation at PC Retry Process When Downloading FileRetry Method \soft\Preparation at PA-2400W RestrictionRetry.scr List of Commands File Check Utility OverviewDownloading file from PC to PA-2400W Operation MethodOperation Transmission side PA-2400W Copying file with PC card from PA-2400W to PA-2400WCopy PC card Describing Method 1Pathname Examples of Correct Startup Details about Command and OptionExamples of specification for command and option Example of Incorrect Startup no /G or /C optionCommand of Fchkce 1Generation of List File Comparison by List File Example \AP\MENU.EXE 12345 \CONFIG.SYS 1000 \AUTOEXEC.BAT 512Format of List File FILENO=3Syntax Analysis of Script File Childproccmd = COption = Recursiveoption Updateoption Recursiveoption = R Error Messages/Codes Restriction AO Append output Option /SCSpecification of a script file nameSpecification of recursive call File name list or Script file name\casio\ .dat \casio data\ \casio\ Destination directory nameFCHK.LOG file output directory name Fchkce /G /R \casio\ .dat \casio data\ \casio\FCHK.LOG file pathname Does not compare the update dataOption Fchkce /C \casio data\